diff options
author | Kevin Enderby <enderby@apple.com> | 2014-01-15 19:05:24 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2014-01-15 19:05:24 +0000 |
commit | 96f3b25e8a61cd79e8d65ff31ff3df079ae50ec1 (patch) | |
tree | d89834f3f5b363727961aa0a535544f50bb49f0d /test/MC | |
parent | 03f1cb72a4ed2bcd5fc26c663dec3607bc0a16ff (diff) | |
download | llvm-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/MC')
-rw-r--r-- | test/MC/X86/intel-syntax-bitwise-ops.s | 18 |
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 |