projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
A testcase sitting in my tree
[oota-llvm.git]
/
test
/
CodeGen
/
PowerPC
/
and-elim.ll
1
; RUN: llvm-as < %s | llc -march=ppc32 &&
2
; RUN: llvm-as < %s | llc -march=ppc32 | not grep rlwin
3
4
void %test(ubyte* %P) {
5
%W = load ubyte* %P
6
%X = shl ubyte %W, ubyte 1
7
%Y = add ubyte %X, 2
8
%Z = and ubyte %Y, 254 ; dead and
9
store ubyte %Z, ubyte* %P
10
ret void
11
}