brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · 0503b3f Raw
86 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	nomips1614; 32: 	.ent	foo15; 32:	.set	noreorder16; 32:	.set	nomacro17; 32:	.set	noat18; 32:	jr	$ra19; 32:	nop20; 32:	.set	at21; 32:	.set	macro22; 32:	.set	reorder23; 32:	.end    foo24define void @nofoo() #1 {25entry:26  ret void27}28 29; 16: 	.set	nomips1630; 16: 	.ent	nofoo31; 16:	.set	noreorder32; 16:	.set	nomacro33; 16:	.set	noat34; 16:	jr	$ra35; 16:	nop36; 16:	.set	at37; 16:	.set	macro38; 16:	.set	reorder39; 16:	.end	nofoo40; 32: 	.set	nomips1641; 32: 	.ent	nofoo42; 32:	.set	noreorder43; 32:	.set	nomacro44; 32:	.set	noat45; 32:	jr	$ra46; 32:	nop47; 32:	.set	at48; 32:	.set	macro49; 32:	.set	reorder50; 32:	.end	nofoo51define i32 @main() #2 {52entry:53  ret i32 054}55 56; 16: 	.set	nomips1657; 16: 	.ent	main58; 16:	.set	noreorder59; 16:	.set	nomacro60; 16:	.set	noat61; 16:	jr	$ra62; 16:	addiu	$2, $zero, 063; 16:	.set	at64; 16:	.set	macro65; 16:	.set	reorder66; 16:	.end	main67 68; 32: 	.set	nomips1669; 32: 	.ent	main70; 32:	.set	noreorder71; 32:	.set	nomacro72; 32:	.set	noat73; 32:	jr	$ra74; 32:	addiu	$2, $zero, 075; 32:	.set	at76; 32:	.set	macro77; 32:	.set	reorder78; 32:	.end	main79 80 81 82 83attributes #0 = { nounwind "less-precise-fpmad"="false" "frame-pointer"="non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "use-soft-float"="false" }84attributes #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" }85attributes #2 = { nounwind "less-precise-fpmad"="false" "nomips16" "frame-pointer"="non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "use-soft-float"="false" }86