summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/X86/intel-syntax-bitwise-ops.s
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/MC/X86/intel-syntax-bitwise-ops.s')
-rw-r--r--llvm/test/MC/X86/intel-syntax-bitwise-ops.s17
1 files changed, 17 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
index 6d4df609c06..a0b25800f97 100644
--- a/llvm/test/MC/X86/intel-syntax-bitwise-ops.s
+++ b/llvm/test/MC/X86/intel-syntax-bitwise-ops.s
@@ -56,3 +56,20 @@
add eax, 6 XOR 3
// CHECK: addl $5, %eax
add eax, 6 XOR 3 shl 1 SHR 1
+// CHECK: movl $-9, %eax
+ mov eax, not(1 shl 3)
+// CHECK: movl $-2, %eax
+ mov eax, ~(0x8 shr 3)
+// CHECK: movl $-4, %eax
+ mov eax, not(1 or 3)
+// CHECK: movl $-2, %eax
+ mov eax, -(1 xor 3)
+// CHECK: movl $-2, %eax
+ mov eax, not(1 and 3)
+// CHECK: movl $3, %eax
+ mov eax, not(not 3)
+// CHECK: movl $-3, %eax
+ mov eax, ~(5 mod 3)
+// CHECK: movl $-2, %eax
+ mov eax, (-5 mod 3)
+
OpenPOWER on IntegriCloud