• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -relocation-model=static -mips32-function-mask=10 -mips-os16 < %s | FileCheck %s -check-prefix=fmask1
2
3; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -relocation-model=static -mips32-function-mask=01 -mips-os16 < %s | FileCheck %s -check-prefix=fmask2
4
5; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -relocation-model=static -mips32-function-mask=10. -mips-os16 < %s | FileCheck %s -check-prefix=fmask1nr
6
7; Function Attrs: nounwind optsize readnone
8define void @foo1()  {
9entry:
10  ret void
11; fmask1: .ent foo1
12; fmask1: .set	noreorder
13; fmask1: .set	nomacro
14; fmask1: .set	noat
15; fmask1: .set	at
16; fmask1: .set	macro
17; fmask1: .set	reorder
18; fmask1: .end	foo1
19; fmask2: .ent	foo1
20; fmask2: jrc $ra
21; fmask2: .end	foo1
22; fmask1nr: .ent foo1
23; fmask1nr: .set	noreorder
24; fmask1nr: .set	nomacro
25; fmask1nr: .set	noat
26; fmask1nr: .set	at
27; fmask1nr: .set	macro
28; fmask1nr: .set	reorder
29; fmask1nr: .end	foo1
30}
31
32; Function Attrs: nounwind optsize readnone
33define void @foo2()  {
34entry:
35  ret void
36; fmask2: .ent foo2
37; fmask2: .set	noreorder
38; fmask2: .set	nomacro
39; fmask2: .set	noat
40; fmask2: .set	at
41; fmask2: .set	macro
42; fmask2: .set	reorder
43; fmask2: .end	foo2
44; fmask1: .ent	foo2
45; fmask1: jrc $ra
46; fmask1: .end	foo2
47; fmask1nr: .ent	foo2
48; fmask1nr: jrc $ra
49; fmask1nr: .end	foo2
50}
51
52; Function Attrs: nounwind optsize readnone
53define void @foo3()  {
54entry:
55  ret void
56; fmask1: .ent foo3
57; fmask1: .set	noreorder
58; fmask1: .set	nomacro
59; fmask1: .set	noat
60; fmask1: .set	at
61; fmask1: .set	macro
62; fmask1: .set	reorder
63; fmask1: .end	foo3
64; fmask2:  .ent	foo3
65; fmask2:  jrc $ra
66; fmask2:  .end	foo3
67; fmask1r:  .ent	foo3
68; fmask1r:  jrc $ra
69; fmask1r:  .end	foo3
70}
71
72; Function Attrs: nounwind optsize readnone
73define void @foo4()  {
74entry:
75  ret void
76; fmask2: .ent foo4
77; fmask2: .set	noreorder
78; fmask2: .set	nomacro
79; fmask2: .set	noat
80; fmask2: .set	at
81; fmask2: .set	macro
82; fmask2: .set	reorder
83; fmask2: .end	foo4
84; fmask1: .ent	foo4
85; fmask1: jrc $ra
86; fmask1: .end	foo4
87; fmask1nr: .ent	foo4
88; fmask1nr: jrc $ra
89; fmask1nr: .end	foo4
90}
91
92
93