blob: e171f3aacb08fc79e51541c97b01fdb4e902650b [file] [log] [blame]
Reid Spencere9da1b02007-01-02 05:55:05 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
2; RUN: grep 'and i32 %Y.s, 8'
Chris Lattnerda15d4b2005-01-01 16:14:46 +00003
4int %test1(ubyte %X) {
5 %Y = cast ubyte %X to int
6 %Z = and int %Y, 65544 ;; Prune this to and Y, 8
7 ret int %Z
8}
9