mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
3dd555171e
Differential Revision: http://reviews.llvm.org/D10385 Patch by marina.yatsina@intel.com git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239695 91177308-0d34-0410-b5e6-96231b3b80d8
25 lines
540 B
ArmAsm
25 lines
540 B
ArmAsm
// 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
|