mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 18:24:23 +00:00
make ConstantRange::signExtend() optimal
the case [x, INT_MIN) was not handled optimally git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193694 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -216,6 +216,9 @@ TEST_F(ConstantRangeTest, SExt) {
|
||||
|
||||
EXPECT_EQ(ConstantRange(APInt(8, 120), APInt(8, 140)).signExtend(16),
|
||||
ConstantRange(APInt(16, -128), APInt(16, 128)));
|
||||
|
||||
EXPECT_EQ(ConstantRange(APInt(16, 0x0200), APInt(16, 0x8000)).signExtend(19),
|
||||
ConstantRange(APInt(19, 0x0200), APInt(19, 0x8000)));
|
||||
}
|
||||
|
||||
TEST_F(ConstantRangeTest, IntersectWith) {
|
||||
|
Reference in New Issue
Block a user