mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-13 14:35:54 +00:00
4b2daefddb
Summary: Fixes PR24915. Reviewers: vkalintiris Subscribers: emaste, seanbruno, llvm-commits Differential Revision: http://reviews.llvm.org/D13533 llvm-svn: 250042
70 lines
4.0 KiB
ArmAsm
70 lines
4.0 KiB
ArmAsm
# RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -show-encoding 2>&1 | \
|
|
# RUN: FileCheck %s --check-prefix=ALL
|
|
|
|
.text
|
|
foo: # ALL-LABEL: foo:
|
|
blt $a2, 16, foo # ALL: addiu $1, $zero, 16
|
|
# ALL: slt $1, $6, $1
|
|
# ALL: bnez $1, foo
|
|
# ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16
|
|
ble $a2, 16, foo # ALL: addiu $1, $zero, 16
|
|
# ALL: slt $1, $1, $6
|
|
# ALL: beqz $1, foo
|
|
# ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16
|
|
bge $a2, 32767, foo # ALL: addiu $1, $zero, 32767
|
|
# ALL: slt $1, $6, $1
|
|
# ALL: beqz $1, foo
|
|
# ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16
|
|
bgt $a2, 32768, foo # ALL: ori $1, $zero, 32768
|
|
# ALL: slt $1, $1, $6
|
|
# ALL: bnez $1, foo
|
|
# ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16
|
|
bltu $a2, 16, foo # ALL: addiu $1, $zero, 16
|
|
# ALL: sltu $1, $6, $1
|
|
# ALL: bnez $1, foo
|
|
# ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16
|
|
bleu $a2, 16, foo # ALL: addiu $1, $zero, 16
|
|
# ALL: sltu $1, $1, $6
|
|
# ALL: beqz $1, foo
|
|
# ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16
|
|
bgeu $a2, 32767, foo # ALL: addiu $1, $zero, 32767
|
|
# ALL: sltu $1, $6, $1
|
|
# ALL: beqz $1, foo
|
|
# ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16
|
|
bgtu $a2, 32768, foo # ALL: ori $1, $zero, 32768
|
|
# ALL: sltu $1, $1, $6
|
|
# ALL: bnez $1, foo
|
|
# ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16
|
|
bltl $a2, 16, foo # ALL: addiu $1, $zero, 16
|
|
# ALL: slt $1, $6, $1
|
|
# ALL: bnel $1, $zero, foo
|
|
# ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16
|
|
blel $a2, 16, foo # ALL: addiu $1, $zero, 16
|
|
# ALL: slt $1, $1, $6
|
|
# ALL: beql $1, $zero, foo
|
|
# ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16
|
|
bgel $a2, 32767, foo # ALL: addiu $1, $zero, 32767
|
|
# ALL: slt $1, $6, $1
|
|
# ALL: beql $1, $zero, foo
|
|
# ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16
|
|
bgtl $a2, 32768, foo # ALL: ori $1, $zero, 32768
|
|
# ALL: slt $1, $1, $6
|
|
# ALL: bnel $1, $zero, foo
|
|
# ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16
|
|
bltul $a2, 16, foo # ALL: addiu $1, $zero, 16
|
|
# ALL: sltu $1, $6, $1
|
|
# ALL: bnel $1, $zero, foo
|
|
# ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16
|
|
bleul $a2, 16, foo # ALL: addiu $1, $zero, 16
|
|
# ALL: sltu $1, $1, $6
|
|
# ALL: beql $1, $zero, foo
|
|
# ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16
|
|
bgeul $a2, 32767, foo # ALL: addiu $1, $zero, 32767
|
|
# ALL: sltu $1, $6, $1
|
|
# ALL: beql $1, $zero, foo
|
|
# ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16
|
|
bgtul $a2, 65536, foo # ALL: lui $1, 1
|
|
# ALL: sltu $1, $1, $6
|
|
# ALL: bnel $1, $zero, foo
|
|
# ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16
|