summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstSimplify/load.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/InstSimplify/load.ll')
-rw-r--r--llvm/test/Transforms/InstSimplify/load.ll11
1 files changed, 7 insertions, 4 deletions
diff --git a/llvm/test/Transforms/InstSimplify/load.ll b/llvm/test/Transforms/InstSimplify/load.ll
index ab87d4b9c53..ba789df4ddb 100644
--- a/llvm/test/Transforms/InstSimplify/load.ll
+++ b/llvm/test/Transforms/InstSimplify/load.ll
@@ -1,18 +1,21 @@
+; NOTE: Assertions have been autogenerated by update_test_checks.py
; RUN: opt < %s -instsimplify -S | FileCheck %s
@zeroinit = constant {} zeroinitializer
@undef = constant {} undef
define i32 @crash_on_zeroinit() {
-; CHECK-LABEL: @crash_on_zeroinit
-; CHECK: ret i32 0
+; CHECK-LABEL: @crash_on_zeroinit(
+; CHECK: ret i32 0
+;
%load = load i32, i32* bitcast ({}* @zeroinit to i32*)
ret i32 %load
}
define i32 @crash_on_undef() {
-; CHECK-LABEL: @crash_on_undef
-; CHECK: ret i32 undef
+; CHECK-LABEL: @crash_on_undef(
+; CHECK: ret i32 undef
+;
%load = load i32, i32* bitcast ({}* @undef to i32*)
ret i32 %load
}
OpenPOWER on IntegriCloud