1f4a2713aSLionel Sambuc; RUN: llc  -march=mipsel -mcpu=mips16 -relocation-model=static -O3 < %s -mips-mixed-16-32  | FileCheck %s -check-prefix=16
2f4a2713aSLionel Sambuc
3f4a2713aSLionel Sambucdefine void @foo() #0 {
4f4a2713aSLionel Sambucentry:
5f4a2713aSLionel Sambuc  ret void
6f4a2713aSLionel Sambuc}
7*0a6a1f1dSLionel Sambuc; 16: 	.set	nomips16
8f4a2713aSLionel Sambuc; 16: 	.ent	foo
9f4a2713aSLionel Sambuc; 16:	.set	noreorder
10f4a2713aSLionel Sambuc; 16:	.set	nomacro
11f4a2713aSLionel Sambuc; 16:	.set	noat
12f4a2713aSLionel Sambuc; 16:	jr	$ra
13f4a2713aSLionel Sambuc; 16:	nop
14f4a2713aSLionel Sambuc; 16:	.set	at
15f4a2713aSLionel Sambuc; 16:	.set	macro
16f4a2713aSLionel Sambuc; 16:	.set	reorder
17f4a2713aSLionel Sambuc; 16:	.end	foo
18f4a2713aSLionel Sambuc
19f4a2713aSLionel Sambucdefine void @nofoo() #1 {
20f4a2713aSLionel Sambucentry:
21f4a2713aSLionel Sambuc  ret void
22f4a2713aSLionel Sambuc}
23f4a2713aSLionel Sambuc
24*0a6a1f1dSLionel Sambuc; 16: 	.set	mips16
25f4a2713aSLionel Sambuc; 16: 	.ent	nofoo
26f4a2713aSLionel Sambuc
27*0a6a1f1dSLionel Sambuc; 16:	jrc $ra
28f4a2713aSLionel Sambuc; 16:	.end	nofoo
29f4a2713aSLionel Sambuc
30f4a2713aSLionel Sambucdefine i32 @main() #2 {
31f4a2713aSLionel Sambucentry:
32f4a2713aSLionel Sambuc  ret i32 0
33f4a2713aSLionel Sambuc}
34f4a2713aSLionel Sambuc
35*0a6a1f1dSLionel Sambuc; 16: 	.set	nomips16
36f4a2713aSLionel Sambuc; 16: 	.ent	main
37f4a2713aSLionel Sambuc; 16:	.set	noreorder
38f4a2713aSLionel Sambuc; 16:	.set	nomacro
39f4a2713aSLionel Sambuc; 16:	.set	noat
40f4a2713aSLionel Sambuc; 16:	jr	$ra
41f4a2713aSLionel Sambuc; 16:	.set	at
42f4a2713aSLionel Sambuc; 16:	.set	macro
43f4a2713aSLionel Sambuc; 16:	.set	reorder
44f4a2713aSLionel Sambuc; 16:	.end	main
45f4a2713aSLionel Sambuc
46f4a2713aSLionel Sambuc
47f4a2713aSLionel Sambuc
48f4a2713aSLionel Sambuc
49f4a2713aSLionel Sambuc
50f4a2713aSLionel Sambuc
51f4a2713aSLionel Sambuc
52f4a2713aSLionel Sambuc
53f4a2713aSLionel Sambuc
54f4a2713aSLionel Sambuc
55f4a2713aSLionel Sambuc
56f4a2713aSLionel Sambucattributes #0 = { nounwind "less-precise-fpmad"="false" "nomips16" "no-frame-pointer-elim"="false" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" }
57f4a2713aSLionel Sambucattributes #1 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false"  "unsafe-fp-math"="false" "use-soft-float"="false" }
58f4a2713aSLionel Sambucattributes #2 = { nounwind "less-precise-fpmad"="false" "nomips16" "no-frame-pointer-elim"="false" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" }
59