Dan Gohman | 8c89a50 | 2007-08-15 13:36:28 +0000 | [diff] [blame] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep cmpbge | count 2 |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 2 | |
3 | bool %test1(ulong %A, ulong %B) { | ||||
4 | %C = and ulong %A, 255 | ||||
5 | %D = and ulong %B, 255 | ||||
6 | %E = setge ulong %C, %D | ||||
7 | ret bool %E | ||||
8 | } | ||||
9 | |||||
10 | bool %test2(ulong %a, ulong %B) { | ||||
11 | %A = shl ulong %a, ubyte 1 | ||||
12 | %C = and ulong %A, 254 | ||||
13 | %D = and ulong %B, 255 | ||||
14 | %E = setge ulong %C, %D | ||||
15 | ret bool %E | ||||
16 | } |