summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/cast-cast-to-and.ll
blob: 97386bb5384272289725538edcbe07a4218f1163 (plain)
1
2
3
4
5
6
7
8
9
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
; RUN:   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
}