summaryrefslogtreecommitdiff
path: root/test/MC/X86/intel-syntax-bitwise-ops.s
blob: a38ae85e6ed164c552e203502ace0d11805b2e1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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