llvm.org GIT mirror llvm / ce8c913
Add a test case for r278217 "[LVI] Relax the assertion about LVILatticeVal type in getConstantRange" git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278226 91177308-0d34-0410-b5e6-96231b3b80d8 Artur Pilipenko 3 years ago
1 changed file(s) with 10 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
8888 exit:
8989 ret void
9090 }
91
92 ; Check for a corner case where an integer value is represented with a constant
93 ; LVILatticeValue instead of constantrange. Check that we don't fail with an
94 ; assertion in this case.
95 @b = global i32 0, align 4
96 define void @test6(i32 %a) {
97 bb:
98 %add = add i32 %a, ptrtoint (i32* @b to i32)
99 ret void
100 }