llvm.org GIT mirror llvm / c730706
Add a testcase for nate's patch git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23172 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 15 years ago
1 changed file(s) with 12 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | llc -march=ppc32 | not grep 'extsh\|rlwinm r3, r3'
1
2 int %test1(short %X) {
3 %Y = cast short %X to int ;; dead
4 ret int %Y
5 }
6
7 int %test2(ushort %X) {
8 %Y = cast ushort %X to int
9 %Z = and int %Y, 65535 ;; dead
10 ret int %Z
11 }