Skip to content

Commit c5337b8

Browse files
author
git apple-llvm automerger
committed
Merge commit '9fba20bfacc8' from llvm.org/main into next
2 parents 1a552ab + 9fba20b commit c5337b8

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

llvm/lib/Target/RISCV/RISCVInstrFormats.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ def VMConstraint : RISCVVConstraint<0b100>;
9999
//
100100
// * vcompress: The destination vector register group cannot overlap the
101101
// source vector register group or the source mask register
102+
def WidenVNoMask : RISCVVConstraint<!or(VS2Constraint.Value,
103+
VS1Constraint.Value)>;
102104
def WidenV : RISCVVConstraint<!or(VS2Constraint.Value,
103105
VS1Constraint.Value,
104106
VMConstraint.Value)>;

llvm/lib/Target/RISCV/RISCVInstrInfoXSf.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,15 +208,15 @@ let Predicates = [HasVendorXSfvqmaccdod], DecoderNamespace = "XSfvector",
208208
}
209209

210210
let Predicates = [HasVendorXSfvqmaccqoq], DecoderNamespace = "XSfvector",
211-
DestEEW = EEWSEWx4, RVVConstraint=WidenV in {
211+
DestEEW = EEWSEWx4, RVVConstraint=WidenVNoMask in {
212212
def VQMACCU_4x8x4 : CustomSiFiveVMACC<0b111100, OPMVV, "sf.vqmaccu.4x8x4">;
213213
def VQMACC_4x8x4 : CustomSiFiveVMACC<0b111101, OPMVV, "sf.vqmacc.4x8x4">;
214214
def VQMACCUS_4x8x4 : CustomSiFiveVMACC<0b111110, OPMVV, "sf.vqmaccus.4x8x4">;
215215
def VQMACCSU_4x8x4 : CustomSiFiveVMACC<0b111111, OPMVV, "sf.vqmaccsu.4x8x4">;
216216
}
217217

218218
let Predicates = [HasVendorXSfvfwmaccqqq], DecoderNamespace = "XSfvector",
219-
DestEEW = EEWSEWx2, RVVConstraint=WidenV in {
219+
DestEEW = EEWSEWx2, RVVConstraint=WidenVNoMask in {
220220
def VFWMACC_4x4x4 : CustomSiFiveVMACC<0b111100, OPFVV, "sf.vfwmacc.4x4x4">;
221221
}
222222

llvm/test/MC/RISCV/rvv/xsfvfwmacc.s

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@ sf.vfwmacc.4x4x4 v8, v4, v20
1313
# CHECK-ENCODING: [0x5b,0x14,0x42,0xf3]
1414
# CHECK-ERROR: instruction requires the following: 'XSfvfwmaccqqq' (SiFive Matrix Multiply Accumulate Instruction and 4-by-4))
1515
# CHECK-UNKNOWN: f342145b <unknown>
16+
17+
sf.vfwmacc.4x4x4 v0, v4, v20
18+
# CHECK-INST: sf.vfwmacc.4x4x4 v0, v4, v20
19+
# CHECK-ENCODING: [0x5b,0x10,0x42,0xf3]
20+
# CHECK-ERROR: instruction requires the following: 'XSfvfwmaccqqq' (SiFive Matrix Multiply Accumulate Instruction and 4-by-4))
21+
# CHECK-UNKNOWN: f342105b <unknown>

llvm/test/MC/RISCV/rvv/xsfvqmacc.s

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,9 @@ sf.vqmaccsu.4x8x4 v8, v4, v20
5555
# CHECK-ENCODING: [0x5b,0x24,0x42,0xff]
5656
# CHECK-ERROR: instruction requires the following: 'XSfvqmaccqoq' (SiFive Int8 Matrix Multiplication Instructions (4-by-8 and 8-by-4))
5757
# CHECK-UNKNOWN: ff42245b <unknown>
58+
59+
sf.vqmaccu.4x8x4 v0, v4, v20
60+
# CHECK-INST: sf.vqmaccu.4x8x4 v0, v4, v20
61+
# CHECK-ENCODING: [0x5b,0x20,0x42,0xf3]
62+
# CHECK-ERROR: instruction requires the following: 'XSfvqmaccqoq' (SiFive Int8 Matrix Multiplication Instructions (4-by-8 and 8-by-4))
63+
# CHECK-UNKNOWN: f342205b <unknown>

0 commit comments

Comments
 (0)