brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · dc2fe29 Raw
68 lines · plain
1; RUN: llc  -mtriple=mipsel -mattr=mips16 -relocation-model=static -O3 < %s -mips-mixed-16-32  | FileCheck %s -check-prefix=162; RUN: llc  -mtriple=mipsel -mcpu=mips32 -relocation-model=static -O3 < %s -mips-mixed-16-32  | FileCheck %s -check-prefix=323 4define void @foo() #0 {5entry:6  ret void7}8 9; 16: 	.set	mips1610; 16: 	.ent	foo11; 16:	jrc $ra12; 16:	.end	foo13; 32: 	.set	mips1614; 32: 	.ent	foo15; 32:	jrc $ra16; 32:	.end	foo17define void @nofoo() #1 {18entry:19  ret void20}21 22; 16: 	.set	nomips1623; 16: 	.ent	nofoo24; 16:	.set	noreorder25; 16:	.set	nomacro26; 16:	.set	noat27; 16:	jr	$ra28; 16:	nop29; 16:	.set	at30; 16:	.set	macro31; 16:	.set	reorder32; 16:	.end	nofoo33; 32: 	.set	nomips1634; 32: 	.ent	nofoo35; 32:	.set	noreorder36; 32:	.set	nomacro37; 32:	.set	noat38; 32:	jr	$ra39; 32:	nop40; 32:	.set	at41; 32:	.set	macro42; 32:	.set	reorder43; 32:	.end	nofoo44define i32 @main() #2 {45entry:46  ret i32 047}48 49; 16: 	.set	mips1650; 16: 	.ent	main51; 16:	jrc $ra52; 16:	.end	main53; 32: 	.set	nomips1654; 32: 	.ent	main55; 32:	.set	noreorder56; 32:	.set	nomacro57; 32:	.set	noat58; 32:	jr	$ra59; 32:	addiu	$2, $zero, 060; 32:	.set	at61; 32:	.set	macro62; 32:	.set	reorder63; 32:	.end	main64 65attributes #0 = { nounwind "less-precise-fpmad"="false" "mips16" "frame-pointer"="non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "use-soft-float"="false" }66attributes #1 = { nounwind "less-precise-fpmad"="false" "frame-pointer"="non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "nomips16" "use-soft-float"="false" }67attributes #2 = { nounwind "less-precise-fpmad"="false" "frame-pointer"="non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "use-soft-float"="false" }68