aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/cast-cast-to-and.ll
blob: 0491de93495bae602560db1914e213a0586fd143 (plain)
1
2
3
4
5
6
7
8
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep ubyte

int %test1(uint %X) {
        %Y = cast uint %X to ubyte ;; Turn into an AND
        %Z = cast ubyte %Y to int
        ret int %Z
}