aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/GVN/crash.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/GVN/crash.ll')
-rw-r--r--test/Transforms/GVN/crash.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Transforms/GVN/crash.ll b/test/Transforms/GVN/crash.ll
index 4a3aa1c55a83..31eae256c6ef 100644
--- a/test/Transforms/GVN/crash.ll
+++ b/test/Transforms/GVN/crash.ll
@@ -151,3 +151,15 @@ dead:
dead2:
ret i32 %A
}
+
+
+; PR9841
+define fastcc i8 @test5(i8* %P) nounwind {
+entry:
+ %0 = load i8* %P, align 2
+
+ %Q = getelementptr i8* %P, i32 1
+ %1 = load i8* %Q, align 1
+ ret i8 %1
+}
+