xref: /aosp_15_r20/external/llvm/test/CodeGen/Mips/f16abs.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -relocation-model=static < %s | FileCheck %s -check-prefix=static
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker@y = global double -1.450000e+00, align 8
4*9880d681SAndroid Build Coastguard Worker@x = common global double 0.000000e+00, align 8
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Worker@y1 = common global float 0.000000e+00, align 4
7*9880d681SAndroid Build Coastguard Worker@x1 = common global float 0.000000e+00, align 4
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Worker; Function Attrs: nounwind optsize
12*9880d681SAndroid Build Coastguard Workerdefine i32 @main() #0 {
13*9880d681SAndroid Build Coastguard Workerentry:
14*9880d681SAndroid Build Coastguard Worker  %0 = load double, double* @y, align 8
15*9880d681SAndroid Build Coastguard Worker  %call = tail call double @fabs(double %0) #2
16*9880d681SAndroid Build Coastguard Worker  store double %call, double* @x, align 8
17*9880d681SAndroid Build Coastguard Worker; static-NOT: 	.ent	__call_stub_fp_fabs
18*9880d681SAndroid Build Coastguard Worker; static-NOT: 	jal fabs
19*9880d681SAndroid Build Coastguard Worker  %1 = load float, float* @y1, align 4
20*9880d681SAndroid Build Coastguard Worker  %call2 = tail call float @fabsf(float %1) #2
21*9880d681SAndroid Build Coastguard Worker  store float %call2, float* @x1, align 4
22*9880d681SAndroid Build Coastguard Worker; static-NOT: 	.ent	__call_stub_fp_fabsf
23*9880d681SAndroid Build Coastguard Worker; static-NOT: 	jal fabsf
24*9880d681SAndroid Build Coastguard Worker  ret i32 0
25*9880d681SAndroid Build Coastguard Worker}
26*9880d681SAndroid Build Coastguard Worker
27*9880d681SAndroid Build Coastguard Worker; Function Attrs: nounwind optsize readnone
28*9880d681SAndroid Build Coastguard Workerdeclare double @fabs(double) #1
29*9880d681SAndroid Build Coastguard Worker
30*9880d681SAndroid Build Coastguard Workerdeclare float @fabsf(float) #1
31*9880d681SAndroid Build Coastguard Worker
32*9880d681SAndroid Build Coastguard Workerattributes #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*9880d681SAndroid Build Coastguard Workerattributes #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" }
34*9880d681SAndroid Build Coastguard Workerattributes #2 = { nounwind optsize readnone }
35*9880d681SAndroid Build Coastguard Worker
36*9880d681SAndroid Build Coastguard Worker
37*9880d681SAndroid Build Coastguard Worker
38