Lines Matching defs:NotReg
882 Register NotReg;
884 // Match: G_XOR %NotReg, -1
885 EXPECT_TRUE(mi_match(NotInst1.getReg(0), *MRI, m_Not(m_Reg(NotReg))));
886 EXPECT_EQ(NotReg, Copies[0]);
888 // Match: G_XOR -1, %NotReg
890 EXPECT_TRUE(mi_match(NotInst2.getReg(0), *MRI, m_Not(m_Reg(NotReg))));
891 EXPECT_EQ(NotReg, Copies[1]);
893 // Don't match: G_XOR %NotReg, 42
896 EXPECT_FALSE(mi_match(WrongCst.getReg(0), *MRI, m_Not(m_Reg(NotReg))));
899 // %xor = G_XOR %NotReg, -1
902 NotReg = Register();
903 EXPECT_TRUE(mi_match(AddInst.getReg(2), *MRI, m_Not(m_Reg(NotReg))));
904 EXPECT_EQ(NotReg, Copies[0]);