mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:40:38 +00:00
[ConstantRange] Fix what appear to be copy and paste mistakes in the unittest.
llvm-svn: 303033
This commit is contained in:
parent
43f7a6ebe8
commit
26361d9d00
@ -708,13 +708,13 @@ TEST(ConstantRange, MakeGuaranteedNoWrapRegion) {
|
||||
Instruction::Add, ConstantRange(32, /* isFullSet = */ true),
|
||||
OBO::NoUnsignedWrap);
|
||||
EXPECT_TRUE(NUWForAllValues.isSingleElement() &&
|
||||
NSWForAllValues.getSingleElement()->isMinValue());
|
||||
NUWForAllValues.getSingleElement()->isMinValue());
|
||||
|
||||
auto NUWAndNSWForAllValues = ConstantRange::makeGuaranteedNoWrapRegion(
|
||||
Instruction::Add, ConstantRange(32, /* isFullSet = */ true),
|
||||
OBO::NoUnsignedWrap | OBO::NoSignedWrap);
|
||||
EXPECT_TRUE(NUWAndNSWForAllValues.isSingleElement() &&
|
||||
NSWForAllValues.getSingleElement()->isMinValue());
|
||||
NUWAndNSWForAllValues.getSingleElement()->isMinValue());
|
||||
|
||||
ConstantRange OneToFive(APInt(32, 1), APInt(32, 6));
|
||||
EXPECT_EQ(ConstantRange::makeGuaranteedNoWrapRegion(
|
||||
|
Loading…
Reference in New Issue
Block a user