brintos

brintos / llvm-project-archived public Read only

0
0
Text · 445 B · 6fcb50f Raw
25 lines · plain
1; RUN: opt < %s -passes=ipsccp -S | grep -v "ret i512 undef" | \2; RUN:   grep "ret i8 2"3 4define internal i512 @test(i1 %B) {5	br i1 %B, label %BB1, label %BB26BB1:7	%Val = add i512 0, 18	br label %BB39BB2:10	br label %BB311BB3:12	%Ret = phi i512 [%Val, %BB1], [2, %BB2]13	ret i512 %Ret14}15 16define i8 @caller()17{18    %t1 = and i2 2, 119    %t11 = trunc i2 %t1 to i120    %t2 = call i512 @test(i1 %t11)21    %t3 = trunc i512 %t2 to i822    ret i8 %t323}24 25