summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/X86/intel-syntax-bitwise-ops.s
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
commit2e13b1c7f1005b1d9d9483f94c25b9eb92316cc9 (patch)
tree24d3bde55c38fd90789cb5d21138be0b6e0e9705 /llvm/test/MC/X86/intel-syntax-bitwise-ops.s
parent2a833ca575946d96987df063470fe9f3b3a865d3 (diff)
downloadbcm5719-llvm-2e13b1c7f1005b1d9d9483f94c25b9eb92316cc9.tar.gz
bcm5719-llvm-2e13b1c7f1005b1d9d9483f94c25b9eb92316cc9.zip
Update the X86 assembler for .intel_syntax to accept
the | and & bitwise operators. rdar://15570412 llvm-svn: 199323
Diffstat (limited to 'llvm/test/MC/X86/intel-syntax-bitwise-ops.s')
-rw-r--r--llvm/test/MC/X86/intel-syntax-bitwise-ops.s18
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/test/MC/X86/intel-syntax-bitwise-ops.s b/llvm/test/MC/X86/intel-syntax-bitwise-ops.s
new file mode 100644
index 00000000000..a38ae85e6ed
--- /dev/null
+++ b/llvm/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
OpenPOWER on IntegriCloud