1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00
llvm-mirror/test/MC/ELF/bracket-exprs.s
Chris Lattner 90c8cff37e split this test into arch specific pieces, so the ARM
test isn't run when the arm backend isn't built.  This
fixes PR9327

llvm-svn: 126500
2011-02-25 19:06:35 +00:00

16 lines
217 B
ArmAsm

// RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
// CHECK: .byte 1
.if [~0 >> 1] == -1
.byte 1
.else
.byte 2
.endif
// CHECK: .byte 3
.if 4 * [4 + (3 + [2 * 2] + 1)] == 48
.byte 3
.else
.byte 4
.endif