Skip to content

Commit 01cc1d1

Browse files
committed
[RISCV] Use Priv tablegen class for sf.cease instruction.
The encoding for sf.cease is only one bit different than wfi which I believe was an intentional choice. wfi uses the Priv class so this makes them consistent.
1 parent a565f9e commit 01cc1d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoXSf.td

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -859,9 +859,9 @@ let Predicates = [HasVendorXSiFivecflushdlone] in {
859859
let Predicates = [HasVendorXSfcease] in {
860860
let hasNoSchedulingInfo = 1, hasSideEffects = 1, mayLoad = 0, mayStore = 0,
861861
DecoderNamespace = "XSfcease" in
862-
def SF_CEASE : RVInstIUnary<0b001100000101, 0b000, OPC_SYSTEM, (outs), (ins),
863-
"sf.cease", "">, Sched<[]> {
864-
let rs1 = 0b00000;
862+
def SF_CEASE : Priv<"sf.cease", 0b0011000>, Sched<[]> {
865863
let rd = 0b00000;
864+
let rs1 = 0b00000;
865+
let rs2 = 0b00101;
866866
}
867867
}

0 commit comments

Comments
 (0)