Skip to content

Commit 2b057fd

Browse files
asbmahesh-attarde
authored andcommitted
[RISCV][test] Regenerate fpr-gpr-copy-rv64.ll
It was missing RV64I lines for `fadd_f32`.
1 parent c54d97f commit 2b057fd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

llvm/test/CodeGen/RISCV/GlobalISel/fpr-gpr-copy-rv64.ll

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ define float @fadd_f32(float %x, float %y) {
3030
; RV32I-NEXT: fadd.d fa5, fa5, fa4
3131
; RV32I-NEXT: fmv.x.d a0, fa5
3232
; RV32I-NEXT: ret
33+
; RV64I-LABEL: fadd_f32:
34+
; RV64I: # %bb.0:
35+
; RV64I-NEXT: fmv.w.x fa5, a0
36+
; RV64I-NEXT: fmv.w.x fa4, a1
37+
; RV64I-NEXT: fadd.s fa5, fa5, fa4
38+
; RV64I-NEXT: fmv.x.w a0, fa5
39+
; RV64I-NEXT: ret
3340
%a = fadd float %x, %y
3441
ret float %a
3542
}

0 commit comments

Comments
 (0)