1 ; RUN: llc -mtriple=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, ptr @i, align 4
22 define void @nofoo() #1 {
24 store i32 20, ptr @i, align 4
25 %0 = load float, ptr @x, align 4
26 %1 = load float, ptr @y, align 4
27 %add = fadd float %0, %1
28 store float %add, ptr @f, align 4
29 %2 = load float, ptr @f, align 4
30 %conv = fpext float %2 to double
31 %call = call i32 (ptr, ...) @printf(ptr @.str, double %conv)
46 declare i32 @printf(ptr, ...) #2
48 define i32 @main() #3 {
51 %0 = load i32, ptr @i, align 4
52 %call = call i32 (ptr, ...) @printf(ptr @.str1, i32 %0)
54 %1 = load i32, ptr @i, align 4
55 %call1 = call i32 (ptr, ...) @printf(ptr @.str2, i32 %1)
70 attributes #0 = { nounwind "less-precise-fpmad"="false" "mips16" "frame-pointer"="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" "frame-pointer"="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" "frame-pointer"="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" "frame-pointer"="non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" }