Skip to content

Commit 0f7a592

Browse files
committed
fixup! fixup! [clang][RISCV] Correct the SEW operand of indexed/fault only first segment intrinsics
1 parent 1ca0a8e commit 0f7a592

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/utils/TableGen/RISCVVEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ static unsigned getIndexedLoadStorePtrIdx(const RVVIntrinsic *RVVI) {
177177
if (IRName.starts_with("vloxseg") || IRName.starts_with("vluxseg")) {
178178
bool NoPassthru =
179179
(RVVI->isMasked() && (RVVI->getPolicyAttrsBits() & RVV_VTA) &&
180-
(RVVI->getPolicyAttrsBits() & RVV_VMA)) |
180+
(RVVI->getPolicyAttrsBits() & RVV_VMA)) ||
181181
(!RVVI->isMasked() && (RVVI->getPolicyAttrsBits() & RVV_VTA));
182182
return RVVI->isMasked() ? NoPassthru ? 1 : 2 : NoPassthru ? 0 : 1;
183183
}

0 commit comments

Comments
 (0)