Lines Matching defs:NegOne
29 Constant *NegOne = ConstantInt::get(Int1, static_cast<uint64_t>(-1), true);
30 EXPECT_EQ(NegOne, ConstantInt::getSigned(Int1, -1));
39 EXPECT_EQ(Zero, ConstantExpr::getAdd(NegOne, One));
43 EXPECT_EQ(Zero, ConstantExpr::getAdd(NegOne, NegOne));
47 EXPECT_EQ(Zero, ConstantExpr::getSub(NegOne, One));
51 EXPECT_EQ(Zero, ConstantExpr::getSub(One, NegOne));
67 EXPECT_EQ(One, ConstantExpr::getMul(NegOne, One));
71 EXPECT_EQ(One, ConstantFoldBinaryInstruction(Instruction::SDiv, NegOne, One));
75 EXPECT_EQ(One, ConstantFoldBinaryInstruction(Instruction::SDiv, One, NegOne));
79 EXPECT_EQ(One, ConstantFoldBinaryInstruction(Instruction::UDiv, NegOne, One));
83 EXPECT_EQ(One, ConstantFoldBinaryInstruction(Instruction::UDiv, One, NegOne));
88 ConstantFoldBinaryInstruction(Instruction::SRem, NegOne, One));
93 ConstantFoldBinaryInstruction(Instruction::SRem, One, NegOne));