Skip to content

Commit f6f43e9

Browse files
committed
fixup! Add aliases.
1 parent f5b5522 commit f6f43e9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoXSf.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,7 @@ let Predicates = [HasVendorXSiFivecdiscarddlone] in {
818818
let rd = 0;
819819
let rs2 = 0b00010;
820820
}
821+
def : InstAlias<"sf.cdiscard.d.l1", (SF_CDISCARD_D_L1 X0)>;
821822
} // Predicates = [HasVendorXSifivecdiscarddlone]
822823

823824
let Predicates = [HasVendorXSiFivecflushdlone] in {
@@ -829,4 +830,5 @@ let Predicates = [HasVendorXSiFivecflushdlone] in {
829830
let rd = 0;
830831
let rs2 = 0b00000;
831832
}
833+
def : InstAlias<"sf.cflush.d.l1", (SF_CFLUSH_D_L1 X0)>;
832834
} // Predicates = [HasVendorXSifivecflushdlone]

llvm/test/MC/RISCV/xsifive-valid.s

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
# CHECK-INST: sf.cflush.d.l1 zero
1313
# CHECK-ENC: encoding: [0x73,0x00,0x00,0xfc]
1414
sf.cflush.d.l1 x0
15+
# CHECK-INST: sf.cflush.d.l1
16+
# CHECK-ENC: encoding: [0x73,0x00,0x00,0xfc]
17+
sf.cflush.d.l1
1518

1619
# CHECK-INST: sf.cflush.d.l1 t2
1720
# CHECK-ENC: encoding: [0x73,0x80,0x03,0xfc]
@@ -20,6 +23,9 @@ sf.cflush.d.l1 x7
2023
# CHECK-INST: sf.cdiscard.d.l1 zero
2124
# CHECK-ENC: encoding: [0x73,0x00,0x20,0xfc]
2225
sf.cdiscard.d.l1 x0
26+
# CHECK-INST: sf.cdiscard.d.l1
27+
# CHECK-ENC: encoding: [0x73,0x00,0x20,0xfc]
28+
sf.cdiscard.d.l1
2329

2430
# CHECK-INST: sf.cdiscard.d.l1 t2
2531
# CHECK-ENC: encoding: [0x73,0x80,0x23,0xfc]

0 commit comments

Comments
 (0)