brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · d82e8f5 Raw
78 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	.section	.mdebug.abi32,"",@progbits10	.file	"/home/espindola/llvm/llvm/test/MC/Mips/do_switch.ll"11	.text12	.globl	main13	.align	214	.type	main,@function15	.set	nomips1616	.ent	main17main:                                   # @main18	.frame	$sp,8,$ra19	.mask 	0x00000000,020	.fmask	0x00000000,021	.set	noreorder22	.set	nomacro23	.set	noat24# %bb.0:                                # %entry25	lui	$2, %hi(_gp_disp)26	addiu	$2, $2, %lo(_gp_disp)27	addiu	$sp, $sp, -828	addiu	$1, $zero, 229	sw	$1, 4($sp)30	lw	$3, 4($sp)31	sltiu	$1, $3, 432	bnez	$1, $BB0_233	addu	$2, $2, $2534$BB0_1:                                 # %bb435	addiu	$2, $zero, 436	jr	$ra37	addiu	$sp, $sp, 838$BB0_2:                                 # %entry39	sll	$1, $3, 240	lw	$3, %got($JTI0_0)($2)41	addu	$1, $1, $342	lw	$1, %lo($JTI0_0)($1)43	addu	$1, $1, $244	jr	$145	nop46$BB0_3:                                 # %bb547	addiu	$2, $zero, 148	jr	$ra49	addiu	$sp, $sp, 850$BB0_4:                                 # %bb151	addiu	$2, $zero, 252	jr	$ra53	addiu	$sp, $sp, 854$BB0_5:                                 # %bb255	addiu	$2, $zero, 056	jr	$ra57	addiu	$sp, $sp, 858$BB0_6:                                 # %bb359	addiu	$2, $zero, 360	jr	$ra61	addiu	$sp, $sp, 862	.set	at63	.set	macro64	.set	reorder65	.end	main66$tmp0:67	.size	main, ($tmp0)-main68	.section	.rodata,"a",@progbits69	.align	270$JTI0_0:71	.gpword	($BB0_3)72	.gpword	($BB0_4)73	.gpword	($BB0_5)74	.gpword	($BB0_6)75 76 77	.text78