blob: aac8c3bd7fa7b22ddfac8c6777b922e2085d1a3d [file] [log] [blame]
Reid Spencere9da1b02007-01-02 05:55:05 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
Reid Spencer91948d42007-04-14 20:13:02 +00002; RUN: grep {and i32 %Y, 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