[PATCH] D11882: Add SAL mnemonics for Intel syntax

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


This revision was automatically updated to reflect the committed changes.
Closed by commit rL244588: [X86] Add SAL mnemonics for Intel syntax (authored by myatsina).

Changed prior to commit:
  http://reviews.llvm.org/D11882?vs=31613&id=31793#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D11882

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

Index: llvm/trunk/test/MC/X86/intel-syntax.s
===================================================================
--- llvm/trunk/test/MC/X86/intel-syntax.s
+++ llvm/trunk/test/MC/X86/intel-syntax.s
@@ -701,3 +701,6 @@
 // CHECK: cmpsb	%es:(%rdi), (%rsi)
 // CHECK: repne
 // CHECK: cmpsb	%es:(%rdi), (%rsi)
+
+sal eax, 123
+// CHECK: shll	$123, %eax
Index: llvm/trunk/lib/Target/X86/X86InstrInfo.td
===================================================================
--- llvm/trunk/lib/Target/X86/X86InstrInfo.td
+++ llvm/trunk/lib/Target/X86/X86InstrInfo.td
@@ -2548,6 +2548,7 @@
 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">;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11882.31793.patch
Type: text/x-patch
Size: 900 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150811/b949be4c/attachment.bin>


More information about the llvm-commits mailing list