ARM64: disable printing of "lslv" type aliases
authorTim Northover <tnorthover@apple.com>
Fri, 16 May 2014 09:40:52 +0000 (09:40 +0000)
committerTim Northover <tnorthover@apple.com>
Fri, 16 May 2014 09:40:52 +0000 (09:40 +0000)
You can write "lslv w0, w1, w2" (probably for legacy reasons), but it should be
printed as simply "lsl".

This will be tested when the TableGen "should I print this Alias" heuristic is
fixed (very soon).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208956 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM64/ARM64InstrFormats.td

index 875f0aebde30a1d0dd8c3243da965087c359b22e..8133a0084f77a4a5149a2ec49617e5bca86fb176 100644 (file)
@@ -1255,7 +1255,7 @@ multiclass Shift<bits<2> shift_type, string asm, SDNode OpNode> {
 
 class ShiftAlias<string asm, Instruction inst, RegisterClass regtype>
     : InstAlias<asm#" $dst, $src1, $src2",
-                (inst regtype:$dst, regtype:$src1, regtype:$src2)>;
+                (inst regtype:$dst, regtype:$src1, regtype:$src2), 0>;
 
 class BaseMulAccum<bit isSub, bits<3> opc, RegisterClass multype,
                        RegisterClass addtype, string asm,