forked from OSchip/llvm-project
[globalisel][knownbits] Correct a typo that prevented a test working as intended
llvm-svn: 371115
This commit is contained in:
parent
20e8667098
commit
e55c4f33ec
|
@ -19,7 +19,7 @@ TEST_F(GISelMITest, TestKnownBitsCst) {
|
|||
unsigned CopyReg = Copies[Copies.size() - 1];
|
||||
MachineInstr *FinalCopy = MRI->getVRegDef(CopyReg);
|
||||
unsigned SrcReg = FinalCopy->getOperand(1).getReg();
|
||||
unsigned DstReg = FinalCopy->getOperand(1).getReg();
|
||||
unsigned DstReg = FinalCopy->getOperand(0).getReg();
|
||||
GISelKnownBits Info(*MF);
|
||||
KnownBits Res = Info.getKnownBits(SrcReg);
|
||||
EXPECT_EQ((uint64_t)1, Res.One.getZExtValue());
|
||||
|
|
Loading…
Reference in New Issue