1 ; RUN: opt < %s -constprop -die -S | FileCheck %s
3 ; This is a basic sanity check for constant propogation. The add instruction
4 ; should be eliminated.
5 define i32 @test1(i1 %B) {
6 br i1 %B, label %BB1, label %BB2
17 ; CHECK: %Ret = phi i32 [ 0, %BB1 ], [ 1, %BB2 ]
18 %Ret = phi i32 [ %Val, %BB1 ], [ 1, %BB2 ]
24 define i1 @test2(i8* %f) nounwind {
26 %V = icmp ne i8* blockaddress(@test2, %bb), null
38 %A = fcmp uno double 0x7FF8000000000000, 1.000000e+00
39 %B = fcmp uno double 1.230000e+02, 1.000000e+00