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