blob: e32f4b966cfa88c63534325cedcfe164b8b9871a [file] [log] [blame]
Reid Spencerd0e30dc2006-12-02 04:23:10 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep 'and int %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