mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-10 06:03:52 +00:00
40a996d5d2
Summary: Fixes PR24915. Reviewers: vkalintiris Subscribers: emaste, seanbruno, llvm-commits Differential Revision: http://reviews.llvm.org/D13533 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250042 91177308-0d34-0410-b5e6-96231b3b80d8
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
|