mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 08:26:29 +00:00
d5860dd600
The .ifne directive assembles the following section of code if the argument expression is non-zero. Effectively, it is equivalent to if. llvm-svn: 201986
22 lines
286 B
ArmAsm
22 lines
286 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
|
|
|
|
# CHECK: .byte 1
|
|
# CHECK-NOT: .byte 0
|
|
.ifne 32 - 32
|
|
.byte 0
|
|
.else
|
|
.byte 1
|
|
.endif
|
|
|