1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -S -passes='function(instsimplify),globalopt' < %s | FileCheck %s
3 ; RUN: opt -S -passes='function(instsimplify)' < %s | opt -S -passes=globalopt | FileCheck %s
5 @g = internal global [6 x ptr] undef
11 %cmp = icmp ne ptr getelementptr (i8, ptr @g, i64 3), null
13 %xor4 = xor i1 %add, 0
14 %t0 = load ptr, ptr getelementptr (i8, ptr @g, i64 3), align 1
15 %t1 = load i16, ptr %t0, align 1
19 define void @test2() {
20 ; CHECK-LABEL: @test2(
21 ; CHECK-NEXT: ret void
23 store ptr null, ptr getelementptr inbounds ([6 x ptr], ptr @g, i32 0, i32 5)