]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/Mips/mips16_32_9.ll
Vendor import of llvm release_34 branch r197841 (effectively, 3.4 RC3):
[FreeBSD/FreeBSD.git] / test / CodeGen / Mips / mips16_32_9.ll
1 ; RUN: llc  -march=mipsel -mcpu=mips32 -relocation-model=static -O3 < %s -mips-mixed-16-32  | FileCheck %s -check-prefix=32
2
3 define void @foo() #0 {
4 entry:
5   ret void
6 }
7
8 ; 32:   .set    mips16                  # @foo
9 ; 32:   .ent    foo
10 ; 32:   save    {{.+}}
11 ; 32:   restore {{.+}} 
12 ; 32:   .end    foo
13 define void @nofoo() #1 {
14 entry:
15   ret void
16 }
17
18 ; 32:   .set    nomips16                  # @nofoo
19 ; 32:   .ent    nofoo
20 ; 32:   .set    noreorder
21 ; 32:   .set    nomacro
22 ; 32:   .set    noat
23 ; 32:   jr      $ra
24 ; 32:   nop
25 ; 32:   .set    at
26 ; 32:   .set    macro
27 ; 32:   .set    reorder
28 ; 32:   .end    nofoo
29 define i32 @main() #2 {
30 entry:
31   ret i32 0
32 }
33
34 ; 32:   .set    mips16                  # @main
35 ; 32:   .ent    main
36 ; 32:   save    {{.+}}
37 ; 32:   restore {{.+}} 
38 ; 32:   .end    main
39
40
41
42
43
44
45
46
47
48
49 attributes #0 = { nounwind "less-precise-fpmad"="false" "mips16" "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" }
50 attributes #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" }
51 attributes #2 = { nounwind "less-precise-fpmad"="false" "mips16" "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" }