[PATCH] D11882: Add SAL mnemonics for Intel syntax

Marina Yatsina via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 9 01:36:19 PDT 2015


myatsina created this revision.
myatsina added reviewers: delena, rnk.
myatsina added a subscriber: llvm-commits.
myatsina set the repository for this revision to rL LLVM.

Add SAL mnemonics for Intel syntax

Repository:
  rL LLVM

http://reviews.llvm.org/D11882

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

Index: lib/Target/X86/X86InstrInfo.td
===================================================================
--- lib/Target/X86/X86InstrInfo.td
+++ 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">;
Index: test/MC/X86/intel-syntax.s
===================================================================
--- test/MC/X86/intel-syntax.s
+++ test/MC/X86/intel-syntax.s
@@ -681,3 +681,6 @@
 // CHECK: outsb (%rsi), %dx
 // CHECK: outsw (%rsi), %dx
 // CHECK: outsl (%rsi), %dx
+
+sal eax, 123
+// CHECK: shll	$123, %eax


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11882.31613.patch
Type: text/x-patch
Size: 845 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150809/6d9d1de1/attachment.bin>


More information about the llvm-commits mailing list