Chris Lattner | da15d4b | 2005-01-01 16:14:46 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep 'and int %Y, 8' |
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 |