76 lines · plain
1// This test case will cause an internal EK_GPRel64BlockAddress to be2// produced. This was not handled for direct object and an assertion3// to occur. This is a variation on test case test/CodeGen/Mips/do_switch.ll4 5// RUN: llvm-mc < %s -filetype=obj -triple=mips-pc-linux6 7 .text8 .abicalls9 .option pic010 .section .mdebug.abi32,"",@progbits11 .file "/home/espindola/llvm/llvm/test/MC/Mips/do_switch.ll"12 .text13 .globl main14 .align 215 .type main,@function16 .set nomips1617 .ent main18main: # @main19 .frame $sp,8,$ra20 .mask 0x00000000,021 .fmask 0x00000000,022 .set noreorder23 .set nomacro24 .set noat25# %bb.0: # %entry26 addiu $sp, $sp, -827 addiu $1, $zero, 228 sw $1, 4($sp)29 lw $2, 4($sp)30 sltiu $1, $2, 431 bnez $1, $BB0_232 nop33$BB0_1: # %bb434 addiu $2, $zero, 435 jr $ra36 addiu $sp, $sp, 837$BB0_2: # %entry38 sll $1, $2, 239 lui $2, %hi($JTI0_0)40 addu $1, $1, $241 lw $1, %lo($JTI0_0)($1)42 jr $143 nop44$BB0_3: # %bb545 addiu $2, $zero, 146 jr $ra47 addiu $sp, $sp, 848$BB0_4: # %bb149 addiu $2, $zero, 250 jr $ra51 addiu $sp, $sp, 852$BB0_5: # %bb253 addiu $2, $zero, 054 jr $ra55 addiu $sp, $sp, 856$BB0_6: # %bb357 addiu $2, $zero, 358 jr $ra59 addiu $sp, $sp, 860 .set at61 .set macro62 .set reorder63 .end main64$tmp0:65 .size main, ($tmp0)-main66 .section .rodata,"a",@progbits67 .align 268$JTI0_0:69 .4byte ($BB0_3)70 .4byte ($BB0_4)71 .4byte ($BB0_5)72 .4byte ($BB0_6)73 74 75 .text76