[llvm] r244588 - [X86] Add SAL mnemonics for Intel syntax

Marina Yatsina via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 11 05:05:06 PDT 2015


Author: myatsina
Date: Tue Aug 11 07:05:06 2015
New Revision: 244588

URL: http://llvm.org/viewvc/llvm-project?rev=244588&view=rev
Log:
[X86] Add SAL mnemonics for Intel syntax

SAL and SHL instructions perform the same operation

Differential Revision: http://reviews.llvm.org/D11882

Modified:
    llvm/trunk/lib/Target/X86/X86InstrInfo.td
    llvm/trunk/test/MC/X86/intel-syntax.s

Modified: llvm/trunk/lib/Target/X86/X86InstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrInfo.td?rev=244588&r1=244587&r2=244588&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrInfo.td (original)
+++ llvm/trunk/lib/Target/X86/X86InstrInfo.td Tue Aug 11 07:05:06 2015
@@ -2548,6 +2548,7 @@ def : MnemonicAlias<"ret", "retw", "att"
 def : MnemonicAlias<"ret", "retl", "att">, Requires<[In32BitMode]>;
 def : MnemonicAlias<"ret", "retq", "att">, Requires<[In64BitMode]>;
 
+def : MnemonicAlias<"sal", "shl", "intel">;
 def : MnemonicAlias<"salb", "shlb", "att">;
 def : MnemonicAlias<"salw", "shlw", "att">;
 def : MnemonicAlias<"sall", "shll", "att">;

Modified: llvm/trunk/test/MC/X86/intel-syntax.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/X86/intel-syntax.s?rev=244588&r1=244587&r2=244588&view=diff
==============================================================================
--- llvm/trunk/test/MC/X86/intel-syntax.s (original)
+++ llvm/trunk/test/MC/X86/intel-syntax.s Tue Aug 11 07:05:06 2015
@@ -701,3 +701,6 @@ repnz cmpsb
 // CHECK: cmpsb	%es:(%rdi), (%rsi)
 // CHECK: repne
 // CHECK: cmpsb	%es:(%rdi), (%rsi)
+
+sal eax, 123
+// CHECK: shll	$123, %eax




More information about the llvm-commits mailing list