blob: 6c33e011719e5150276dbc4cf6dfb8de76c18d02 [file] [log] [blame]
Daniel Sanders8008de52015-10-15 14:34:23 +00001; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -relocation-model=static < %s | FileCheck %s -check-prefix=static
Reed Kotlerd265e882013-08-11 21:30:27 +00002
3@y = global double -1.450000e+00, align 8
4@x = common global double 0.000000e+00, align 8
5
Reed Kotler339c7412013-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 Kotlerd265e882013-08-11 21:30:27 +000011; Function Attrs: nounwind optsize
12define i32 @main() #0 {
13entry:
David Blaikiea79ac142015-02-27 21:17:42 +000014 %0 = load double, double* @y, align 8
Reed Kotlerd265e882013-08-11 21:30:27 +000015 %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
David Blaikiea79ac142015-02-27 21:17:42 +000019 %1 = load float, float* @y1, align 4
Reed Kotler339c7412013-10-08 19:55:01 +000020 %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 Kotlerd265e882013-08-11 21:30:27 +000024 ret i32 0
25}
26
27; Function Attrs: nounwind optsize readnone
28declare double @fabs(double) #1
29
Reed Kotler339c7412013-10-08 19:55:01 +000030declare float @fabsf(float) #1
31
Bill Wendling187d3dd2013-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 Kotlerd265e882013-08-11 21:30:27 +000034attributes #2 = { nounwind optsize readnone }
35
36
37