blob: 2d30f910dcdfcc98fa054edfd96db5a9d84dcc96 [file] [log] [blame]
Reid Spencerdeb4d5a2006-12-31 06:02:00 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep 'and i32 %Y, 8'
Chris Lattnerda15d4b2005-01-01 16:14:46 +00002
3int %test1(ubyte %X) {
4 %Y = cast ubyte %X to int
5 %Z = and int %Y, 65544 ;; Prune this to and Y, 8
6 ret int %Z
7}
8