llvm.org GIT mirror llvm / 43c3c70
Add a testcase for load short -> uint, which is currently emitted as a zextload + sign_extend_inreg rather than a sextload. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22852 91177308-0d34-0410-b5e6-96231b3b80d8 Nate Begeman 14 years ago
1 changed file(s) with 9 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | llc -march=ppc32 | grep lha
1 ; XFAIL: *
2
3 uint %test(short* %a) {
4 entry:
5 %tmp.1 = load short* %a
6 %tmp.2 = cast short %tmp.1 to uint
7 ret uint %tmp.2
8 }