2009-08-08 06:46:00 +08:00
|
|
|
# RUN: llvm-mc -triple i386-unknown-unknown %s -I %p | FileCheck %s
|
|
|
|
|
2010-02-13 09:28:07 +08:00
|
|
|
# CHECK: .byte 2
|
2009-08-08 06:46:00 +08:00
|
|
|
.if 1+2
|
|
|
|
.if 1-1
|
|
|
|
.byte 1
|
|
|
|
.elseif 2+2
|
|
|
|
.byte 1+1
|
|
|
|
.else
|
|
|
|
.byte 0
|
|
|
|
.endif
|
|
|
|
.endif
|
2014-02-23 23:53:41 +08:00
|
|
|
|
2014-06-19 04:57:28 +08:00
|
|
|
# CHECK: .byte 0
|
|
|
|
# CHECK-NOT: .byte 1
|
|
|
|
.ifeq 32 - 32
|
|
|
|
.byte 0
|
|
|
|
.else
|
|
|
|
.byte 1
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# CHECK: .byte 0
|
|
|
|
# CHECK: .byte 1
|
|
|
|
# CHECK-NOT: .byte 2
|
|
|
|
.ifge 32 - 31
|
|
|
|
.byte 0
|
|
|
|
.endif
|
|
|
|
.ifge 32 - 32
|
|
|
|
.byte 1
|
|
|
|
.endif
|
|
|
|
.ifge 32 - 33
|
|
|
|
.byte 2
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# CHECK: .byte 0
|
|
|
|
# CHECK-NOT: .byte 1
|
|
|
|
# CHECK-NOT: .byte 2
|
|
|
|
.ifgt 32 - 31
|
|
|
|
.byte 0
|
|
|
|
.endif
|
|
|
|
.ifgt 32 - 32
|
|
|
|
.byte 1
|
|
|
|
.endif
|
|
|
|
.ifgt 32 - 33
|
|
|
|
.byte 2
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# CHECK-NOT: .byte 0
|
|
|
|
# CHECK: .byte 1
|
|
|
|
# CHECK: .byte 2
|
|
|
|
.ifle 32 - 31
|
|
|
|
.byte 0
|
|
|
|
.endif
|
|
|
|
.ifle 32 - 32
|
|
|
|
.byte 1
|
|
|
|
.endif
|
|
|
|
.ifle 32 - 33
|
|
|
|
.byte 2
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# CHECK-NOT: .byte 0
|
|
|
|
# CHECK-NOT: .byte 1
|
|
|
|
# CHECK: .byte 2
|
|
|
|
.iflt 32 - 31
|
|
|
|
.byte 0
|
|
|
|
.endif
|
|
|
|
.iflt 32 - 32
|
|
|
|
.byte 1
|
|
|
|
.endif
|
|
|
|
.iflt 32 - 33
|
|
|
|
.byte 2
|
|
|
|
.endif
|
|
|
|
|
2014-02-23 23:53:41 +08:00
|
|
|
# CHECK: .byte 1
|
|
|
|
# CHECK-NOT: .byte 0
|
|
|
|
.ifne 32 - 32
|
|
|
|
.byte 0
|
|
|
|
.else
|
|
|
|
.byte 1
|
|
|
|
.endif
|
|
|
|
|