diff options
Diffstat (limited to 'test/Transforms/InstSimplify/compare.ll')
-rw-r--r-- | test/Transforms/InstSimplify/compare.ll | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/test/Transforms/InstSimplify/compare.ll b/test/Transforms/InstSimplify/compare.ll index 92b8fc7e3a..f22ac46397 100644 --- a/test/Transforms/InstSimplify/compare.ll +++ b/test/Transforms/InstSimplify/compare.ll @@ -446,9 +446,20 @@ define <2 x i1> @vectorselect1(<2 x i1> %cond) { ; CHECK: ret <2 x i1> %cond } -define <2 x i1> @vectorselectcrash(i32 %arg1) { ; PR11948 +; PR11948 +define <2 x i1> @vectorselectcrash(i32 %arg1) { %tobool40 = icmp ne i32 %arg1, 0 %cond43 = select i1 %tobool40, <2 x i16> <i16 -5, i16 66>, <2 x i16> <i16 46, i16 1> %cmp45 = icmp ugt <2 x i16> %cond43, <i16 73, i16 21> ret <2 x i1> %cmp45 } + +; PR12013 +define i1 @alloca_compare(i64 %idx) { + %sv = alloca { i32, i32, [124 x i32] } + %1 = getelementptr inbounds { i32, i32, [124 x i32] }* %sv, i32 0, i32 2, i64 %idx + %2 = icmp eq i32* %1, null + ret i1 %2 + ; CHECK: alloca_compare + ; CHECK: ret i1 false +} |