1 ; RUN: llc -march=mipsel -mcpu=mips32 -relocation-model=static -O3 < %s -mips-mixed-16-32 | FileCheck %s -check-prefix=32
3 @x = global float 1.000000e+00, align 4
4 @y = global float 0x4007333340000000, align 4
5 @i = common global i32 0, align 4
6 @f = common global float 0.000000e+00, align 4
7 @.str = private unnamed_addr constant [8 x i8] c"f = %f\0A\00", align 1
8 @.str1 = private unnamed_addr constant [11 x i8] c"hello %i \0A\00", align 1
9 @.str2 = private unnamed_addr constant [13 x i8] c"goodbye %i \0A\00", align 1
11 define void @foo() #0 {
13 store i32 10, i32* @i, align 4
17 ; 32: .set mips16 # @foo
23 define void @nofoo() #1 {
25 store i32 20, i32* @i, align 4
26 %0 = load float* @x, align 4
27 %1 = load float* @y, align 4
28 %add = fadd float %0, %1
29 store float %add, float* @f, align 4
30 %2 = load float* @f, align 4
31 %conv = fpext float %2 to double
32 %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([8 x i8]* @.str, i32 0, i32 0), double %conv)
36 ; 32: .set nomips16 # @nofoo
47 declare i32 @printf(i8*, ...) #2
49 define i32 @main() #3 {
52 %0 = load i32* @i, align 4
53 %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([11 x i8]* @.str1, i32 0, i32 0), i32 %0)
55 %1 = load i32* @i, align 4
56 %call1 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([13 x i8]* @.str2, i32 0, i32 0), i32 %1)
60 ; 32: .set nomips16 # @main
71 attributes #0 = { nounwind "less-precise-fpmad"="false" "mips16" "no-frame-pointer-elim"="false" "no-frame-pointer-elim-non-leaf"="true" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" }
72 attributes #1 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-frame-pointer-elim-non-leaf"="true" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "nomips16" "unsafe-fp-math"="false" "use-soft-float"="false" }
73 attributes #2 = { "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-frame-pointer-elim-non-leaf"="true" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" }
74 attributes #3 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-frame-pointer-elim-non-leaf"="true" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" }