summaryrefslogtreecommitdiff
path: root/test/Transforms/LICM/crash.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/LICM/crash.ll')
-rw-r--r--test/Transforms/LICM/crash.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Transforms/LICM/crash.ll b/test/Transforms/LICM/crash.ll
index 88be5c41ccc5a..ff7fa0b19a820 100644
--- a/test/Transforms/LICM/crash.ll
+++ b/test/Transforms/LICM/crash.ll
@@ -59,3 +59,16 @@ for.end: ; preds = %for.cond, %entry
}
declare i32* @test3helper(i32*)
+
+
+; PR8602
+@g_47 = external global i32, align 4
+
+define void @test4() noreturn nounwind {
+ br label %1
+
+; <label>:1 ; preds = %1, %0
+ volatile store i32* @g_47, i32** undef, align 8
+ store i32 undef, i32* @g_47, align 4
+ br label %1
+}