brintos

brintos / llvm-project-archived public Read only

0
0
Text · 784 B · 887115f Raw
40 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py2; RUN: opt -S -passes=ipsccp < %s | FileCheck %s3 4@g1 = internal global i32 15@g2 = internal global i32 16 7define i8 @test1() {8; CHECK-LABEL: @test1(9; CHECK-NEXT:    [[V:%.*]] = load i8, ptr @g1, align 110; CHECK-NEXT:    ret i8 [[V]]11;12  %v = load i8, ptr @g113  ret i8 %v14}15 16define void @test2() {17; CHECK-LABEL: @test2(18; CHECK-NEXT:    store i8 2, ptr @g2, align 119; CHECK-NEXT:    ret void20;21  store i8 2, ptr @g222  ret void23}24 25define internal i32 @test4() {26; CHECK-LABEL: @test4(27; CHECK-NEXT:    ret i32 4228;29  ret i32 4230}31 32define i64 @test3() {33; CHECK-LABEL: @test3(34; CHECK-NEXT:    [[CALL:%.*]] = call i64 @test4()35; CHECK-NEXT:    ret i64 [[CALL]]36;37  %call = call i64 @test4()38  ret i64 %call39}40