mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
77a2814a9a
GAS returns -1 for a comparison operator if the result is true and 0 if false. https://www.sourceware.org/binutils/docs-2.12/as.info/Infix-Ops.html#Infix%20Ops llvm-svn: 332215
32 lines
491 B
ArmAsm
32 lines
491 B
ArmAsm
# RUN: llvm-mc -triple i386-apple-darwin %s | FileCheck %s
|
|
|
|
# CHECK: TEST0:
|
|
# CHECK: .space 1
|
|
TEST0:
|
|
.space 1
|
|
|
|
# CHECK: TEST1:
|
|
# CHECK: .space 2,3
|
|
TEST1:
|
|
.space 2, 3
|
|
|
|
# CHECK: TEST2:
|
|
# CHECK: .space 1,3
|
|
TEST2:
|
|
.space -(2 > 0), 3
|
|
|
|
# CHECK: TEST3:
|
|
# CHECK: .space 1
|
|
TEST3:
|
|
.skip 1
|
|
|
|
# CHECK: TEST4
|
|
# CHECK: .space TEST0-TEST1
|
|
TEST4:
|
|
.skip TEST0 - TEST1
|
|
|
|
# CHECK: TEST5
|
|
# CHECK: .space -((TEST0-TEST1)>0)
|
|
TEST5:
|
|
.skip -((TEST0 - TEST1) > 0)
|