Skip to content

Commit 066ee51

Browse files
authored
[RISCV][GISel] Support ret fp16 vector for zvfhmin (#160719)
1 parent 891f002 commit 066ee51

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

llvm/lib/Target/RISCV/GISel/RISCVCallLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ static bool isLegalElementTypeForRVV(Type *EltTy,
334334
if (EltTy->isIntegerTy(64))
335335
return Subtarget.hasVInstructionsI64();
336336
if (EltTy->isHalfTy())
337-
return Subtarget.hasVInstructionsF16();
337+
return Subtarget.hasVInstructionsF16Minimal();
338338
if (EltTy->isBFloatTy())
339339
return Subtarget.hasVInstructionsBF16Minimal();
340340
if (EltTy->isFloatTy())

llvm/test/CodeGen/RISCV/GlobalISel/irtranslator/vec-ret.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2-
; RUN: llc -mtriple=riscv32 -mattr=+v,+zvfbfmin,+zvfh -global-isel -stop-after=irtranslator \
2+
; RUN: llc -mtriple=riscv32 -mattr=+v,+zvfbfmin,+zvfhmin -global-isel -stop-after=irtranslator \
33
; RUN: -verify-machineinstrs < %s | FileCheck -check-prefixes=RV32 %s
4-
; RUN: llc -mtriple=riscv64 -mattr=+v,+zvfbfmin,+zvfh -global-isel -stop-after=irtranslator \
4+
; RUN: llc -mtriple=riscv64 -mattr=+v,+zvfbfmin,+zvfhmin -global-isel -stop-after=irtranslator \
55
; RUN: -verify-machineinstrs < %s | FileCheck -check-prefixes=RV64 %s
66

77
; ==========================================================================

0 commit comments

Comments
 (0)