blob: 7c017b8e4b755ff00702e411d32a9a92cca91eac [file] [log] [blame]
Reed Kotler1595f362013-04-09 19:46:01 +00001; RUN: llc -march=mipsel -mcpu=mips16 -relocation-model=static -O3 < %s -mips-mixed-16-32 | FileCheck %s -check-prefix=16
2
3define void @foo() #0 {
4entry:
5 ret void
6}
7; 16: .set nomips16 # @foo
8; 16: .ent foo
9; 16: .set noreorder
10; 16: .set nomacro
11; 16: .set noat
12; 16: jr $ra
13; 16: nop
14; 16: .set at
15; 16: .set macro
16; 16: .set reorder
17; 16: .end foo
18
19define void @nofoo() #1 {
20entry:
21 ret void
22}
23
24; 16: .set mips16 # @nofoo
25; 16: .ent nofoo
26
27; 16: save {{.+}}
28; 16: restore {{.+}}
29; 16: .end nofoo
30
31define i32 @main() #2 {
32entry:
33 ret i32 0
34}
35
36; 16: .set nomips16 # @main
37; 16: .ent main
38; 16: .set noreorder
39; 16: .set nomacro
40; 16: .set noat
41; 16: jr $ra
42; 16: .set at
43; 16: .set macro
44; 16: .set reorder
45; 16: .end main
46
47
48
49
50
51
52
53
54
55
56
Bill Wendling187d3dd2013-08-22 21:28:54 +000057attributes #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" }
58attributes #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" }
59attributes #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" }