Skip to content

Commit f3833cd

Browse files
committed
[RISCV] make SRLW io types be 64 bits
Signed-off-by: Shreeyash Pandey <[email protected]>
1 parent d713682 commit f3833cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/unittests/Target/RISCV/RISCVSelectionDAGTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ TEST_F(RISCVSelectionDAGTest, computeKnownBits_SRLW) {
9494
auto Px = DAG->getRegister(0, IntVT);
9595
auto Py = DAG->getConstant(2147483647, Loc, IntVT);
9696
auto N1 = DAG->getNode(ISD::AND, Loc, IntVT, Px, Py);
97-
auto Qx = DAG->getRegister(0, IntVT);
98-
auto N2 = DAG->getNode(RISCVISD::SRLW, Loc, IntVT, N1, Qx);
97+
auto Qx = DAG->getRegister(0, Int64VT);
98+
auto N2 = DAG->getNode(RISCVISD::SRLW, Loc, Int64VT, N1, Qx);
9999
auto N3 = DAG->getNode(ISD::ZERO_EXTEND, Loc, Int64VT, N2);
100100
// N1 = 0???????????????????????????????
101101
// N2 = 0???????????????????????????????

0 commit comments

Comments
 (0)