Reid Spencer | e9da1b0 | 2007-01-02 05:55:05 +0000 | [diff] [blame] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \ |
Reid Spencer | 91948d4 | 2007-04-14 20:13:02 +0000 | [diff] [blame^] | 2 | ; RUN: grep {and i32 %Y, 8} |
Chris Lattner | da15d4b | 2005-01-01 16:14:46 +0000 | [diff] [blame] | 3 | |
4 | int %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 |