blob: a863d55d4c5068421255965c92e805e6781bee8e [file] [log] [blame]
Reid Spencere9da1b02007-01-02 05:55:05 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
Reid Spencerce380562007-01-26 08:25:06 +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