1 ; RUN: opt < %s -data-layout="E-p:32:32" -passes=ipsccp -S | FileCheck %s
3 @j = internal global i32 undef, align 4
5 ; Make sure we do not mark loads from undef as overdefined.
6 define i32 @test5(i32 %b) {
7 ; CHECK-LABEL: define i32 @test5(i32 %b)
8 ; CHECK-NEXT: %add = add nsw i32 undef, %b
9 ; CHECK-NEXT: ret i32 %add
11 %l = load i32, ptr @j, align 4
12 %add = add nsw i32 %l, %b