Skip to content

Commit d713682

Browse files
committed
[RISCV] use RISCVISD::SRLW instead of the generic ISD:SRL
Signed-off-by: Shreeyash Pandey <[email protected]>
1 parent 7c8e165 commit d713682

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/unittests/Target/RISCV/RISCVSelectionDAGTest.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//===----------------------------------------------------------------------===//
77

88
#include "RISCVISelLowering.h"
9+
#include "RISCVSelectionDAGInfo.h"
910
#include "llvm/Analysis/OptimizationRemarkEmitter.h"
1011
#include "llvm/AsmParser/Parser.h"
1112
#include "llvm/CodeGen/MachineModuleInfo.h"
@@ -94,7 +95,7 @@ TEST_F(RISCVSelectionDAGTest, computeKnownBits_SRLW) {
9495
auto Py = DAG->getConstant(2147483647, Loc, IntVT);
9596
auto N1 = DAG->getNode(ISD::AND, Loc, IntVT, Px, Py);
9697
auto Qx = DAG->getRegister(0, IntVT);
97-
auto N2 = DAG->getNode(ISD::SRL, Loc, IntVT, N1, Qx);
98+
auto N2 = DAG->getNode(RISCVISD::SRLW, Loc, IntVT, N1, Qx);
9899
auto N3 = DAG->getNode(ISD::ZERO_EXTEND, Loc, Int64VT, N2);
99100
// N1 = 0???????????????????????????????
100101
// N2 = 0???????????????????????????????

0 commit comments

Comments
 (0)