llvm-6502/test/MC/AsmParser/conditional_asm.s
Kevin Enderby c114ed711e Added Mac OS X assembler style conditional assembly. I may come back and see if
I can clean this up a bit more and do way with the TheCondState and just use
the top element on the TheCondStack if not empty.  Also may tweak the code
around ParseConditionalAssemblyDirectives() to simplify the AsmParser code.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78423 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-07 22:46:00 +00:00

13 lines
201 B
ArmAsm

# RUN: llvm-mc -triple i386-unknown-unknown %s -I %p | FileCheck %s
# CHECK: .byte 2
.if 1+2
.if 1-1
.byte 1
.elseif 2+2
.byte 1+1
.else
.byte 0
.endif
.endif