Andrew Lenharth | bd7c22c | 2006-02-13 18:52:01 +0000 | [diff] [blame] | 1 | ; Make sure this testcase codegens to the zapnot instruction |
Reid Spencer | 65f47a3 | 2007-04-15 18:40:57 +0000 | [diff] [blame] | 2 | ; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep zapnot |
Andrew Lenharth | bd7c22c | 2006-02-13 18:52:01 +0000 | [diff] [blame] | 3 | |
4 | ulong %foo(ulong %y) { | ||||
5 | entry: | ||||
6 | %tmp = shr ulong %y, ubyte 3 ; <ulong> [#uses=1] | ||||
7 | %tmp2 = and ulong %tmp, 8191 ; <ulong> [#uses=1] | ||||
8 | ret ulong %tmp2 | ||||
9 | } | ||||
10 |