1# RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -show-encoding 2>&1 | \ 2# RUN: FileCheck %s --check-prefix=ALL 3 4 .text 5foo: # ALL-LABEL: foo: 6 blt $a2, 16, foo # ALL: addiu $1, $zero, 16 7 # ALL: slt $1, $6, $1 8 # ALL: bnez $1, foo 9 # ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16 10 ble $a2, 16, foo # ALL: addiu $1, $zero, 16 11 # ALL: slt $1, $1, $6 12 # ALL: beqz $1, foo 13 # ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16 14 bge $a2, 32767, foo # ALL: addiu $1, $zero, 32767 15 # ALL: slt $1, $6, $1 16 # ALL: beqz $1, foo 17 # ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16 18 bgt $a2, 32768, foo # ALL: ori $1, $zero, 32768 19 # ALL: slt $1, $1, $6 20 # ALL: bnez $1, foo 21 # ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16 22 bltu $a2, 16, foo # ALL: addiu $1, $zero, 16 23 # ALL: sltu $1, $6, $1 24 # ALL: bnez $1, foo 25 # ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16 26 bleu $a2, 16, foo # ALL: addiu $1, $zero, 16 27 # ALL: sltu $1, $1, $6 28 # ALL: beqz $1, foo 29 # ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16 30 bgeu $a2, 32767, foo # ALL: addiu $1, $zero, 32767 31 # ALL: sltu $1, $6, $1 32 # ALL: beqz $1, foo 33 # ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16 34 bgtu $a2, 32768, foo # ALL: ori $1, $zero, 32768 35 # ALL: sltu $1, $1, $6 36 # ALL: bnez $1, foo 37 # ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16 38 bltl $a2, 16, foo # ALL: addiu $1, $zero, 16 39 # ALL: slt $1, $6, $1 40 # ALL: bnel $1, $zero, foo 41 # ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16 42 blel $a2, 16, foo # ALL: addiu $1, $zero, 16 43 # ALL: slt $1, $1, $6 44 # ALL: beql $1, $zero, foo 45 # ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16 46 bgel $a2, 32767, foo # ALL: addiu $1, $zero, 32767 47 # ALL: slt $1, $6, $1 48 # ALL: beql $1, $zero, foo 49 # ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16 50 bgtl $a2, 32768, foo # ALL: ori $1, $zero, 32768 51 # ALL: slt $1, $1, $6 52 # ALL: bnel $1, $zero, foo 53 # ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16 54 bltul $a2, 16, foo # ALL: addiu $1, $zero, 16 55 # ALL: sltu $1, $6, $1 56 # ALL: bnel $1, $zero, foo 57 # ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16 58 bleul $a2, 16, foo # ALL: addiu $1, $zero, 16 59 # ALL: sltu $1, $1, $6 60 # ALL: beql $1, $zero, foo 61 # ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16 62 bgeul $a2, 32767, foo # ALL: addiu $1, $zero, 32767 63 # ALL: sltu $1, $6, $1 64 # ALL: beql $1, $zero, foo 65 # ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16 66 bgtul $a2, 65536, foo # ALL: lui $1, 1 67 # ALL: sltu $1, $1, $6 68 # ALL: bnel $1, $zero, foo 69 # ALL: # fixup A - offset: 0, value: foo-4, kind: fixup_Mips_PC16 70