summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Generic/addc-fold2.ll
blob: 34f5ac1b9814ea5162643d64234c45664702f877 (plain)
1
2
3
4
5
6
7
8
9
10
; RUN: llc < %s -march=x86 | grep add
; RUN: llc < %s -march=x86 | not grep adc

define i64 @test(i64 %A, i32 %B) {
        %tmp12 = zext i32 %B to i64             ; <i64> [#uses=1]
        %tmp3 = shl i64 %tmp12, 32              ; <i64> [#uses=1]
        %tmp5 = add i64 %tmp3, %A               ; <i64> [#uses=1]
        ret i64 %tmp5
}

OpenPOWER on IntegriCloud