aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/X86/intel-syntax.s
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2012-01-18 22:42:29 +0000
committerDevang Patel <dpatel@apple.com>2012-01-18 22:42:29 +0000
commitb8ba13f0096b560ee618512019ca86969a9fa772 (patch)
tree9cf9e629a9405029afa234d7bd0f3d2bb812b751 /test/MC/X86/intel-syntax.s
parent5aa5368ccd6b4711d67e00a190e1da1f41b713a0 (diff)
downloadexternal_llvm-b8ba13f0096b560ee618512019ca86969a9fa772.zip
external_llvm-b8ba13f0096b560ee618512019ca86969a9fa772.tar.gz
external_llvm-b8ba13f0096b560ee618512019ca86969a9fa772.tar.bz2
Process instructions after match to select alternative encoding which may be more desirable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148431 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/X86/intel-syntax.s')
-rw-r--r--test/MC/X86/intel-syntax.s24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/MC/X86/intel-syntax.s b/test/MC/X86/intel-syntax.s
index 46d3761..6f4c77a 100644
--- a/test/MC/X86/intel-syntax.s
+++ b/test/MC/X86/intel-syntax.s
@@ -29,4 +29,28 @@ _main:
movzx EDI, WORD PTR [RCX + 2]
// CHECK: callq _test
call _test
+// CHECK: andw $12, %ax
+ and ax, 12
+// CHECK: andw $-12, %ax
+ and ax, -12
+// CHECK: andw $257, %ax
+ and ax, 257
+// CHECK: andw $-257, %ax
+ and ax, -257
+// CHECK: andl $12, %eax
+ and eax, 12
+// CHECK: andl $-12, %eax
+ and eax, -12
+// CHECK: andl $257, %eax
+ and eax, 257
+// CHECK: andl $-257, %eax
+ and eax, -257
+// CHECK: andq $12, %rax
+ and rax, 12
+// CHECK: andq $-12, %rax
+ and rax, -12
+// CHECK: andq $257, %rax
+ and rax, 257
+// CHECK: andq $-257, %rax
+ and rax, -257
ret