llvm-6502/test/Transforms/InstCombine/cast-cast-to-and.ll
2006-12-02 04:23:10 +00:00

9 lines
216 B
LLVM

; 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
}