1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -S -passes=ipsccp < %s | FileCheck %s
4 @g1 = internal global i32 1
5 @g2 = internal global i32 1
9 ; CHECK-NEXT: [[V:%.*]] = load i8, ptr @g1, align 1
10 ; CHECK-NEXT: ret i8 [[V]]
16 define void @test2() {
17 ; CHECK-LABEL: @test2(
18 ; CHECK-NEXT: store i8 2, ptr @g2, align 1
19 ; CHECK-NEXT: ret void
25 define internal i32 @test4() {
26 ; CHECK-LABEL: @test4(
27 ; CHECK-NEXT: ret i32 42
33 ; CHECK-LABEL: @test3(
34 ; CHECK-NEXT: [[CALL:%.*]] = call i64 @test4()
35 ; CHECK-NEXT: ret i64 [[CALL]]
37 %call = call i64 @test4()