2014-01-16 03:05:24 +08:00
|
|
|
// 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
|
2017-04-04 22:43:23 +08:00
|
|
|
// CHECK: andl $3, %ecx
|
|
|
|
and ecx, 1 or 2
|
|
|
|
// CHECK: andl $3, %ecx
|
|
|
|
and ecx, 1 OR 2
|
|
|
|
// CHECK: andl $3, %ecx
|
2014-01-16 03:05:24 +08:00
|
|
|
and ecx, 1*3
|
|
|
|
// CHECK: andl $1, %ecx
|
|
|
|
and ecx, 1&3
|
2017-04-04 22:43:23 +08:00
|
|
|
// CHECK: andl $1, %ecx
|
|
|
|
and ecx, 1 and 3
|
|
|
|
// CHECK: andl $1, %ecx
|
|
|
|
and ecx, 1 AND 3
|
|
|
|
// CHECK: andl $0, %ecx
|
2014-01-16 03:05:24 +08:00
|
|
|
and ecx, (1&2)
|
2017-04-04 22:43:23 +08:00
|
|
|
// CHECK: andl $0, %ecx
|
|
|
|
and ecx, (1 and 2)
|
|
|
|
// CHECK: andl $0, %ecx
|
|
|
|
and ecx, (1 AND 2)
|
|
|
|
// CHECK: andl $3, %ecx
|
2014-01-16 03:05:24 +08:00
|
|
|
and ecx, ((1)|2)
|
2017-04-04 22:43:23 +08:00
|
|
|
// CHECK: andl $3, %ecx
|
|
|
|
and ecx, ((1) or 2)
|
|
|
|
// CHECK: andl $3, %ecx
|
|
|
|
and ecx, ((1) OR 2)
|
|
|
|
// CHECK: andl $1, %ecx
|
2014-01-16 03:05:24 +08:00
|
|
|
and ecx, 1&2+3
|
2017-04-04 22:43:23 +08:00
|
|
|
// CHECK: andl $1, %ecx
|
|
|
|
and ecx, 1 and 2+3
|
|
|
|
// CHECK: andl $1, %ecx
|
|
|
|
and ecx, 1 AND 2+3
|
|
|
|
// CHECK: addl $4938, %eax
|
2014-02-06 09:21:15 +08:00
|
|
|
add eax, 9876 >> 1
|
2017-04-04 22:43:23 +08:00
|
|
|
// CHECK: addl $4938, %eax
|
|
|
|
add eax, 9876 shr 1
|
|
|
|
// CHECK: addl $4938, %eax
|
|
|
|
add eax, 9876 SHR 1
|
|
|
|
// CHECK: addl $19752, %eax
|
2014-02-06 09:21:15 +08:00
|
|
|
add eax, 9876 << 1
|
2017-04-04 22:43:23 +08:00
|
|
|
// CHECK: addl $19752, %eax
|
|
|
|
add eax, 9876 shl 1
|
|
|
|
// CHECK: addl $19752, %eax
|
|
|
|
add eax, 9876 SHL 1
|
|
|
|
// CHECK: addl $5, %eax
|
2015-06-14 20:59:45 +08:00
|
|
|
add eax, 6 ^ 3
|
2017-04-04 22:43:23 +08:00
|
|
|
// CHECK: addl $5, %eax
|
|
|
|
add eax, 6 xor 3
|
|
|
|
// CHECK: addl $5, %eax
|
|
|
|
add eax, 6 XOR 3
|
|
|
|
// CHECK: addl $5, %eax
|
|
|
|
add eax, 6 XOR 3 shl 1 SHR 1
|