Reid Spencer | deb4d5a | 2006-12-31 06:02:00 +0000 | [diff] [blame] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep 'and i32 %Y, 8' |
Chris Lattner | da15d4b | 2005-01-01 16:14:46 +0000 | [diff] [blame] | 2 | |
3 | int %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 |