blob: e99a6b1e3794d845db3f70fcd52022ce07c6757e [file] [log] [blame]
Dan Gohman28beeea2007-08-15 13:36:28 +00001; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep cmpbge | count 2
Chris Lattner2f239b92006-10-11 03:59:48 +00002
3bool %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
10bool %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}