summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2014-01-15 19:05:24 +0000
committerKevin Enderby <enderby@apple.com>2014-01-15 19:05:24 +0000
commit96f3b25e8a61cd79e8d65ff31ff3df079ae50ec1 (patch)
treed89834f3f5b363727961aa0a535544f50bb49f0d /test
parent03f1cb72a4ed2bcd5fc26c663dec3607bc0a16ff (diff)
downloadllvm-96f3b25e8a61cd79e8d65ff31ff3df079ae50ec1.tar.gz
llvm-96f3b25e8a61cd79e8d65ff31ff3df079ae50ec1.tar.bz2
llvm-96f3b25e8a61cd79e8d65ff31ff3df079ae50ec1.tar.xz
Update the X86 assembler for .intel_syntax to accept
the | and & bitwise operators. rdar://15570412 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199323 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/MC/X86/intel-syntax-bitwise-ops.s18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/MC/X86/intel-syntax-bitwise-ops.s b/test/MC/X86/intel-syntax-bitwise-ops.s
new file mode 100644
index 0000000000..a38ae85e6e
--- /dev/null
+++ b/test/MC/X86/intel-syntax-bitwise-ops.s
@@ -0,0 +1,18 @@
+// RUN: llvm-mc -triple x86_64-unknown-unknown -x86-asm-syntax=att %s | FileCheck %s
+
+.intel_syntax
+
+// CHECK: andl $3, %ecx
+ and ecx, 1+2
+// CHECK: andl $3, %ecx
+ and ecx, 1|2
+// CHECK: andl $3, %ecx
+ and ecx, 1*3
+// CHECK: andl $1, %ecx
+ and ecx, 1&3
+// CHECK: andl $0, %ecx
+ and ecx, (1&2)
+// CHECK: andl $3, %ecx
+ and ecx, ((1)|2)
+// CHECK: andl $1, %ecx
+ and ecx, 1&2+3