You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
540 B
25 lines
540 B
// 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
|
|
// CHECK: addl $4938, %eax
|
|
add eax, 9876 >> 1
|
|
// CHECK: addl $19752, %eax
|
|
add eax, 9876 << 1
|
|
// CHECK: addl $5, %eax
|
|
add eax, 6 ^ 3
|