Skip to content

Commit 1003ab5

Browse files
committed
address comments
1 parent 7b8376e commit 1003ab5

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

llvm/test/CodeGen/NVPTX/convert-sm80.ll

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ define i32 @cvt_rna_tf32_f32(float %f1) {
224224
declare i32 @llvm.nvvm.f2tf32.rna(float)
225225

226226

227-
define <2 x bfloat> @fold_ff2bf16x2(float %a, float %b) {
227+
define <2 x bfloat> @fold_ff2bf16x2(float %lo, float %hi) {
228228
; CHECK-LABEL: fold_ff2bf16x2(
229229
; CHECK: {
230230
; CHECK-NEXT: .reg .b32 %r<2>;
@@ -236,14 +236,14 @@ define <2 x bfloat> @fold_ff2bf16x2(float %a, float %b) {
236236
; CHECK-NEXT: cvt.rn.bf16x2.f32 %r1, %f2, %f1;
237237
; CHECK-NEXT: st.param.b32 [func_retval0], %r1;
238238
; CHECK-NEXT: ret;
239-
%ah = fptrunc float %a to bfloat
240-
%bh = fptrunc float %b to bfloat
241-
%v0 = insertelement <2 x bfloat> poison, bfloat %ah, i64 0
242-
%v1 = insertelement <2 x bfloat> %v0, bfloat %bh, i64 1
239+
%loh = fptrunc float %lo to bfloat
240+
%hih = fptrunc float %hi to bfloat
241+
%v0 = insertelement <2 x bfloat> poison, bfloat %loh, i64 0
242+
%v1 = insertelement <2 x bfloat> %v0, bfloat %hih, i64 1
243243
ret <2 x bfloat> %v1
244244
}
245245

246-
define <2 x half> @fold_ff2f16x2(float %a, float %b) {
246+
define <2 x half> @fold_ff2f16x2(float %lo, float %hi) {
247247
; CHECK-LABEL: fold_ff2f16x2(
248248
; CHECK: {
249249
; CHECK-NEXT: .reg .b32 %r<2>;
@@ -255,9 +255,9 @@ define <2 x half> @fold_ff2f16x2(float %a, float %b) {
255255
; CHECK-NEXT: cvt.rn.f16x2.f32 %r1, %f2, %f1;
256256
; CHECK-NEXT: st.param.b32 [func_retval0], %r1;
257257
; CHECK-NEXT: ret;
258-
%ah = fptrunc float %a to half
259-
%bh = fptrunc float %b to half
260-
%v0 = insertelement <2 x half> poison, half %ah, i64 0
261-
%v1 = insertelement <2 x half> %v0, half %bh, i64 1
258+
%loh = fptrunc float %lo to half
259+
%hih = fptrunc float %hi to half
260+
%v0 = insertelement <2 x half> poison, half %loh, i64 0
261+
%v1 = insertelement <2 x half> %v0, half %hih, i64 1
262262
ret <2 x half> %v1
263263
}

0 commit comments

Comments
 (0)