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
22 define void @nofoo() #1 {
24 store i32 20, i32* @i, align 4
25 %0 = load float, float* @x, align 4
26 %1 = load float, float* @y, align 4
27 %add = fadd float %0, %1
28 store float %add, float* @f, align 4
29 %2 = load float, float* @f, align 4
30 %conv = fpext float %2 to double
31 %call = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i32 0, i32 0), double %conv)
46 declare i32 @printf(i8*, ...) #2
48 define i32 @main() #3 {
51 %0 = load i32, i32* @i, align 4
52 %call = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str1, i32 0, i32 0), i32 %0)
54 %1 = load i32, i32* @i, align 4
55 %call1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str2, i32 0, i32 0), i32 %1)
70 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" }
71 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" "nomips16" "unsafe-fp-math"="false" "use-soft-float"="false" }
72 attributes #2 = { "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" }
73 attributes #3 = { 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" }