aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/zext.ll
blob: cd1f1f827bd6c56c2cfb43b2ecb92d4dcba82272 (plain)
1
2
3
4
5
6
7
8
9
; Tests to make sure elimination of casts is working correctly
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
; RUN:   notcast {} {%c1.*}

long %test_sext_zext(short %A) {
    %c1 = zext short %A to uint
    %c2 = sext uint %c1 to long
    ret long %c2
}