[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/lha.ll
Nate Begeman
natebegeman at mac.com
Wed Aug 17 20:11:55 PDT 2005
Changes in directory llvm/test/Regression/CodeGen/PowerPC:
lha.ll added (r1.1)
---
Log message:
Add a testcase for load short -> uint, which is currently emitted as a
zextload + sign_extend_inreg rather than a sextload.
---
Diffs of the changes: (+9 -0)
lha.ll | 9 +++++++++
1 files changed, 9 insertions(+)
Index: llvm/test/Regression/CodeGen/PowerPC/lha.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/lha.ll:1.1
*** /dev/null Wed Aug 17 22:11:54 2005
--- llvm/test/Regression/CodeGen/PowerPC/lha.ll Wed Aug 17 22:11:44 2005
***************
*** 0 ****
--- 1,9 ----
+ ; RUN: llvm-as < %s | llc -march=ppc32 | grep lha
+ ; XFAIL: *
+
+ uint %test(short* %a) {
+ entry:
+ %tmp.1 = load short* %a
+ %tmp.2 = cast short %tmp.1 to uint
+ ret uint %tmp.2
+ }
More information about the llvm-commits
mailing list