summaryrefslogtreecommitdiffstats
path: root/llvm/test/Regression/Transforms/InstCombine/zext.ll
blob: 7835fe690b2de21e899f7938a2ef9b3465b93b3d (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 -disable-output &&
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | notcast '' '%c1.*'

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