aboutsummaryrefslogtreecommitdiff
path: root/test/MC/X86
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2012-01-19 18:40:55 +0000
committerDevang Patel <dpatel@apple.com>2012-01-19 18:40:55 +0000
commita951f77ca31b43551bd41765504519d6d76e6cbf (patch)
treee7ab306afa704156780526564cb24511b0e10992 /test/MC/X86
parentf460bf8cd8e8a711e9de33085884e31d1c989010 (diff)
Post process 'and', 'sub' instructions and select better encoding, if available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148489 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/X86')
-rw-r--r--test/MC/X86/intel-syntax-encoding.s8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/MC/X86/intel-syntax-encoding.s b/test/MC/X86/intel-syntax-encoding.s
index 23eff01691..c81636bcbb 100644
--- a/test/MC/X86/intel-syntax-encoding.s
+++ b/test/MC/X86/intel-syntax-encoding.s
@@ -24,3 +24,11 @@
// CHECK: encoding: [0x48,0x89,0x44,0x24,0xf0]
mov QWORD PTR [RSP - 16], RAX
+// CHECK: encoding: [0x66,0x83,0xc0,0xf4]
+ add ax, -12
+// CHECK: encoding: [0x83,0xc0,0xf4]
+ add eax, -12
+// CHECK: encoding: [0x48,0x83,0xc0,0xf4]
+ add rax, -12
+
+