17f7dac71SZarko Todorovski; This is a basic correctness check for constant propagation. The add 27f7dac71SZarko Todorovski; instruction should be eliminated. 3cee313d2SEric Christopher 4*8ebb3eacSBjorn Pettersson; RUN: opt < %s -passes=sccp -S | not grep add 5cee313d2SEric Christopher 6cee313d2SEric Christopherdefine i128 @test(i1 %B) { 7cee313d2SEric Christopher br i1 %B, label %BB1, label %BB2 8cee313d2SEric ChristopherBB1: 9cee313d2SEric Christopher %Val = add i128 0, 1 10cee313d2SEric Christopher br label %BB3 11cee313d2SEric ChristopherBB2: 12cee313d2SEric Christopher br label %BB3 13cee313d2SEric ChristopherBB3: 14cee313d2SEric Christopher %Ret = phi i128 [%Val, %BB1], [2, %BB2] 15cee313d2SEric Christopher ret i128 %Ret 16cee313d2SEric Christopher} 17