Index: llvm/lib/Target/RISCV/RISCVInstrInfoZfh.td =================================================================== --- llvm/lib/Target/RISCV/RISCVInstrInfoZfh.td +++ llvm/lib/Target/RISCV/RISCVInstrInfoZfh.td @@ -206,15 +206,16 @@ (FLT_H GPR:$rd, FPR16:$rt, FPR16:$rs), 0>; def : InstAlias<"fge.h $rd, $rs, $rt", (FLE_H GPR:$rd, FPR16:$rt, FPR16:$rs), 0>; -} // Predicates = [HasStdExtZfh] -let Predicates = [HasStdExtZfhOrZfhmin] in { -def PseudoFLH : PseudoFloatLoad<"flh", FPR16>; -def PseudoFSH : PseudoStore<"fsh", FPR16>; let usesCustomInserter = 1 in { def PseudoQuietFLE_H : PseudoQuietFCMP; def PseudoQuietFLT_H : PseudoQuietFCMP; } +} // Predicates = [HasStdExtZfh] + +let Predicates = [HasStdExtZfhOrZfhmin] in { +def PseudoFLH : PseudoFloatLoad<"flh", FPR16>; +def PseudoFSH : PseudoStore<"fsh", FPR16>; } // Predicates = [HasStdExtZfhOrZfhmin] let Predicates = [HasStdExtZhinx] in {