Skip to content

Commit 1c2c02c

Browse files
authored
[RISCV][Scheduler] Split UnsupportedSchedZfa by other fp extensions (#140186)
1 parent 9a1bfc1 commit 1c2c02c

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

llvm/lib/Target/RISCV/RISCVSchedule.td

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -454,18 +454,31 @@ def : ReadAdvance<ReadFRoundF128, 0>;
454454
}
455455
}
456456

457-
multiclass UnsupportedSchedZfa : UnsupportedSchedZfaWithQ {
457+
multiclass UnsupportedSchedZfaWithD : UnsupportedSchedZfaWithQ {
458458
let Unsupported = true in {
459-
def : WriteRes<WriteFRoundF16, []>;
460-
def : WriteRes<WriteFRoundF32, []>;
461459
def : WriteRes<WriteFRoundF64, []>;
462-
def : WriteRes<WriteFLI16, []>;
463-
def : WriteRes<WriteFLI32, []>;
464460
def : WriteRes<WriteFLI64, []>;
465461

466-
def : ReadAdvance<ReadFRoundF32, 0>;
467462
def : ReadAdvance<ReadFRoundF64, 0>;
463+
}
464+
}
465+
466+
multiclass UnsupportedSchedZfaWithZfh {
467+
let Unsupported = true in {
468+
def : WriteRes<WriteFRoundF16, []>;
469+
def : WriteRes<WriteFLI16, []>;
470+
468471
def : ReadAdvance<ReadFRoundF16, 0>;
472+
}
473+
}
474+
475+
multiclass UnsupportedSchedZfa : UnsupportedSchedZfaWithD,
476+
UnsupportedSchedZfaWithZfh {
477+
let Unsupported = true in {
478+
def : WriteRes<WriteFRoundF32, []>;
479+
def : WriteRes<WriteFLI32, []>;
480+
481+
def : ReadAdvance<ReadFRoundF32, 0>;
469482
} // Unsupported = true
470483
}
471484

0 commit comments

Comments
 (0)