blob: 54cf82e1a26a528c97f7af31acbe1a21eceb4198 [file] [log] [blame]
Nate Begeman1b0674c2005-08-03 18:27:17 +00001; All of these ands and shifts should be folded into rlwimi's
2; RUN: llvm-as < rlwinm.ll | llc -march=ppc32 | not grep and &&
3; RUN: llvm-as < rlwinm.ll | llc -march=ppc32 | grep rlwinm | wc -l | grep 2
4
5implementation ; Functions:
6
7int %test1(int %a) {
8entry:
9 %tmp.1 = and int %a, 268431360 ; <int> [#uses=1]
10 ret int %tmp.1
11}
12
13int %test2(int %a) {
14entry:
15 %tmp.1 = and int %a, -268435441 ; <int> [#uses=1]
16 ret int %tmp.1
17}