blob: 928914f067dd616b3343ca7309a3f7cf6f4e078d [file] [log] [blame]
Reed Kotler5e4b95b2013-08-11 21:30:27 +00001; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -soft-float -mips16-hard-float -relocation-model=static < %s | FileCheck %s -check-prefix=static
2
3@y = global double -1.450000e+00, align 8
4@x = common global double 0.000000e+00, align 8
5
Reed Kotler78f83392013-10-08 19:55:01 +00006@y1 = common global float 0.000000e+00, align 4
7@x1 = common global float 0.000000e+00, align 4
8
9
10
Reed Kotler5e4b95b2013-08-11 21:30:27 +000011; Function Attrs: nounwind optsize
12define i32 @main() #0 {
13entry:
14 %0 = load double* @y, align 8
15 %call = tail call double @fabs(double %0) #2
16 store double %call, double* @x, align 8
17; static-NOT: .ent __call_stub_fp_fabs
18; static-NOT: jal fabs
Reed Kotler78f83392013-10-08 19:55:01 +000019 %1 = load float* @y1, align 4
20 %call2 = tail call float @fabsf(float %1) #2
21 store float %call2, float* @x1, align 4
22; static-NOT: .ent __call_stub_fp_fabsf
23; static-NOT: jal fabsf
Reed Kotler5e4b95b2013-08-11 21:30:27 +000024 ret i32 0
25}
26
27; Function Attrs: nounwind optsize readnone
28declare double @fabs(double) #1
29
Reed Kotler78f83392013-10-08 19:55:01 +000030declare float @fabsf(float) #1
31
Bill Wendling80075c42013-08-22 21:28:54 +000032attributes #0 = { nounwind optsize "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="true" }
33attributes #1 = { nounwind optsize readnone "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="true" }
Reed Kotler5e4b95b2013-08-11 21:30:27 +000034attributes #2 = { nounwind optsize readnone }
35
36
37