summaryrefslogtreecommitdiff
path: root/test/MC/X86/intel-syntax-bitwise-ops.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/X86/intel-syntax-bitwise-ops.s')
-rw-r--r--test/MC/X86/intel-syntax-bitwise-ops.s17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/MC/X86/intel-syntax-bitwise-ops.s b/test/MC/X86/intel-syntax-bitwise-ops.s
index 6d4df609c061a..a0b25800f976c 100644
--- a/test/MC/X86/intel-syntax-bitwise-ops.s
+++ b/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)
+