projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add a testcase for nate's patch
[oota-llvm.git]
/
test
/
CodeGen
/
PowerPC
/
small-arguments.ll
1
; RUN: llvm-as < %s | llc -march=ppc32 | not grep 'extsh\|rlwinm r3, r3'
2
3
int %test1(short %X) {
4
%Y = cast short %X to int ;; dead
5
ret int %Y
6
}
7
8
int %test2(ushort %X) {
9
%Y = cast ushort %X to int
10
%Z = and int %Y, 65535 ;; dead
11
ret int %Z
12
}