blob: ff9831ed762260ca48c6aa8ecd889fb0b12f1d7c [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}
Rafael Espindola6633d572014-01-14 18:57:12 +00007; 16: .set nomips16
Reed Kotler1595f362013-04-09 19:46:01 +00008; 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
Rafael Espindola6633d572014-01-14 18:57:12 +000024; 16: .set mips16
Reed Kotler1595f362013-04-09 19:46:01 +000025; 16: .ent nofoo
26
Reed Kotler5c29d632013-12-15 20:49:30 +000027; 16: jrc $ra
Reed Kotler1595f362013-04-09 19:46:01 +000028; 16: .end nofoo
29
30define i32 @main() #2 {
31entry:
32 ret i32 0
33}
34
Rafael Espindola6633d572014-01-14 18:57:12 +000035; 16: .set nomips16
Reed Kotler1595f362013-04-09 19:46:01 +000036; 16: .ent main
37; 16: .set noreorder
38; 16: .set nomacro
39; 16: .set noat
40; 16: jr $ra
41; 16: .set at
42; 16: .set macro
43; 16: .set reorder
44; 16: .end main
45
46
47
48
49
50
51
52
53
54
55
Bill Wendling187d3dd2013-08-22 21:28:54 +000056attributes #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" }
57attributes #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" }
58attributes #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" }