1 ; RUN: opt < %s -instsimplify -S | FileCheck %s
3 @zeroinit = constant {} zeroinitializer
4 @undef = constant {} undef
6 define i32 @crash_on_zeroinit() {
7 ; CHECK-LABEL: @crash_on_zeroinit
9 %load = load i32* bitcast ({}* @zeroinit to i32*)
13 define i32 @crash_on_undef() {
14 ; CHECK-LABEL: @crash_on_undef
15 ; CHECK: ret i32 undef
16 %load = load i32* bitcast ({}* @undef to i32*)