brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 2b2dd8b Raw
74 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	mips1657; 16: 	.ent	main58; 16:	jrc $ra59; 16:	.end	main60 61; 32: 	.set	mips1662; 32: 	.ent	main63; 32:	jrc $ra64; 32:	.end	main65 66 67 68 69 70 71attributes #0 = { nounwind "less-precise-fpmad"="false" "frame-pointer"="non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "use-soft-float"="false" }72attributes #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" }73attributes #2 = { nounwind "less-precise-fpmad"="false" "mips16" "frame-pointer"="non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "use-soft-float"="false" }74