Reed Kotler | 5e4b95b | 2013-08-11 21:30:27 +0000 | [diff] [blame] | 1 | ; 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 Kotler | 78f8339 | 2013-10-08 19:55:01 +0000 | [diff] [blame] | 6 | @y1 = common global float 0.000000e+00, align 4 |
| 7 | @x1 = common global float 0.000000e+00, align 4 |
| 8 | |
| 9 | |
| 10 | |
Reed Kotler | 5e4b95b | 2013-08-11 21:30:27 +0000 | [diff] [blame] | 11 | ; Function Attrs: nounwind optsize |
| 12 | define i32 @main() #0 { |
| 13 | entry: |
| 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 Kotler | 78f8339 | 2013-10-08 19:55:01 +0000 | [diff] [blame] | 19 | %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 Kotler | 5e4b95b | 2013-08-11 21:30:27 +0000 | [diff] [blame] | 24 | ret i32 0 |
| 25 | } |
| 26 | |
| 27 | ; Function Attrs: nounwind optsize readnone |
| 28 | declare double @fabs(double) #1 |
| 29 | |
Reed Kotler | 78f8339 | 2013-10-08 19:55:01 +0000 | [diff] [blame] | 30 | declare float @fabsf(float) #1 |
| 31 | |
Bill Wendling | 80075c4 | 2013-08-22 21:28:54 +0000 | [diff] [blame] | 32 | attributes #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" } |
| 33 | attributes #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 Kotler | 5e4b95b | 2013-08-11 21:30:27 +0000 | [diff] [blame] | 34 | attributes #2 = { nounwind optsize readnone } |
| 35 | |
| 36 | |
| 37 | |