Skip to content

Commit 16304fb

Browse files
asbDisasm
authored andcommitted
[RISCV][NFC] s/f32/f64 in double-arith.ll
The intrinsic names erroneously used the .f32 variant. As the return and argument types were still double the intrinsics calls worked properly. llvm-svn: 352211
1 parent badf218 commit 16304fb

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

llvm/test/CodeGen/RISCV/double-arith.ll

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ define double @fdiv_d(double %a, double %b) nounwind {
8686
ret double %1
8787
}
8888

89-
declare double @llvm.sqrt.f32(double)
89+
declare double @llvm.sqrt.f64(double)
9090

9191
define double @fsqrt_d(double %a) nounwind {
9292
; RV32IFD-LABEL: fsqrt_d:
@@ -101,11 +101,11 @@ define double @fsqrt_d(double %a) nounwind {
101101
; RV32IFD-NEXT: lw a1, 12(sp)
102102
; RV32IFD-NEXT: addi sp, sp, 16
103103
; RV32IFD-NEXT: ret
104-
%1 = call double @llvm.sqrt.f32(double %a)
104+
%1 = call double @llvm.sqrt.f64(double %a)
105105
ret double %1
106106
}
107107

108-
declare double @llvm.copysign.f32(double, double)
108+
declare double @llvm.copysign.f64(double, double)
109109

110110
define double @fsgnj_d(double %a, double %b) nounwind {
111111
; RV32IFD-LABEL: fsgnj_d:
@@ -123,7 +123,7 @@ define double @fsgnj_d(double %a, double %b) nounwind {
123123
; RV32IFD-NEXT: lw a1, 12(sp)
124124
; RV32IFD-NEXT: addi sp, sp, 16
125125
; RV32IFD-NEXT: ret
126-
%1 = call double @llvm.copysign.f32(double %a, double %b)
126+
%1 = call double @llvm.copysign.f64(double %a, double %b)
127127
ret double %1
128128
}
129129

@@ -161,11 +161,11 @@ define double @fsgnjn_d(double %a, double %b) nounwind {
161161
; RV32IFD-NEXT: addi sp, sp, 16
162162
; RV32IFD-NEXT: ret
163163
%1 = fsub double -0.0, %b
164-
%2 = call double @llvm.copysign.f32(double %a, double %1)
164+
%2 = call double @llvm.copysign.f64(double %a, double %1)
165165
ret double %2
166166
}
167167

168-
declare double @llvm.fabs.f32(double)
168+
declare double @llvm.fabs.f64(double)
169169

170170
define double @fabs_d(double %a) nounwind {
171171
; RV32IFD-LABEL: fabs_d:
@@ -180,11 +180,11 @@ define double @fabs_d(double %a) nounwind {
180180
; RV32IFD-NEXT: lw a1, 12(sp)
181181
; RV32IFD-NEXT: addi sp, sp, 16
182182
; RV32IFD-NEXT: ret
183-
%1 = call double @llvm.fabs.f32(double %a)
183+
%1 = call double @llvm.fabs.f64(double %a)
184184
ret double %1
185185
}
186186

187-
declare double @llvm.minnum.f32(double, double)
187+
declare double @llvm.minnum.f64(double, double)
188188

189189
define double @fmin_d(double %a, double %b) nounwind {
190190
; RV32IFD-LABEL: fmin_d:
@@ -202,11 +202,11 @@ define double @fmin_d(double %a, double %b) nounwind {
202202
; RV32IFD-NEXT: lw a1, 12(sp)
203203
; RV32IFD-NEXT: addi sp, sp, 16
204204
; RV32IFD-NEXT: ret
205-
%1 = call double @llvm.minnum.f32(double %a, double %b)
205+
%1 = call double @llvm.minnum.f64(double %a, double %b)
206206
ret double %1
207207
}
208208

209-
declare double @llvm.maxnum.f32(double, double)
209+
declare double @llvm.maxnum.f64(double, double)
210210

211211
define double @fmax_d(double %a, double %b) nounwind {
212212
; RV32IFD-LABEL: fmax_d:
@@ -224,7 +224,7 @@ define double @fmax_d(double %a, double %b) nounwind {
224224
; RV32IFD-NEXT: lw a1, 12(sp)
225225
; RV32IFD-NEXT: addi sp, sp, 16
226226
; RV32IFD-NEXT: ret
227-
%1 = call double @llvm.maxnum.f32(double %a, double %b)
227+
%1 = call double @llvm.maxnum.f64(double %a, double %b)
228228
ret double %1
229229
}
230230

0 commit comments

Comments
 (0)