[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/small-arguments.ll

Chris Lattner lattner at cs.uiuc.edu
Thu Sep 1 16:44:09 PDT 2005



Changes in directory llvm/test/Regression/CodeGen/PowerPC:

small-arguments.ll updated: 1.1 -> 1.2
---
Log message:

Another case that shouldn't have sign extends: functions returning short
are known to return properly sign extended values, no need for an explicit
extension.


---
Diffs of the changes:  (+14 -0)

 small-arguments.ll |   14 ++++++++++++++
 1 files changed, 14 insertions(+)


Index: llvm/test/Regression/CodeGen/PowerPC/small-arguments.ll
diff -u llvm/test/Regression/CodeGen/PowerPC/small-arguments.ll:1.1 llvm/test/Regression/CodeGen/PowerPC/small-arguments.ll:1.2
--- llvm/test/Regression/CodeGen/PowerPC/small-arguments.ll:1.1	Wed Aug 31 13:19:50 2005
+++ llvm/test/Regression/CodeGen/PowerPC/small-arguments.ll	Thu Sep  1 18:43:58 2005
@@ -10,3 +10,17 @@
 	%Z = and int %Y, 65535      ;; dead
 	ret int %Z
 }
+
+void %test3() {
+	%tmp.0 = call short %foo()            ;; no extsh!
+	%tmp.1 = setlt short %tmp.0, 1234
+	br bool %tmp.1, label %then, label %UnifiedReturnBlock
+
+then:	
+	call int %test1(short 0)
+	ret void
+UnifiedReturnBlock:
+	ret void
+}
+
+declare short %foo()






More information about the llvm-commits mailing list