[llvm-commits] CVS: llvm/test/Regression/CodeGen/Generic/2006-04-28-Sign-extend-bool.ll
Chris Lattner
lattner at cs.uiuc.edu
Fri Apr 28 14:52:37 PDT 2006
Changes in directory llvm/test/Regression/CodeGen/Generic:
2006-04-28-Sign-extend-bool.ll added (r1.1)
---
Log message:
testcase that crashes the ppc backend, which can't sextinreg(i1)
---
Diffs of the changes: (+10 -0)
2006-04-28-Sign-extend-bool.ll | 10 ++++++++++
1 files changed, 10 insertions(+)
Index: llvm/test/Regression/CodeGen/Generic/2006-04-28-Sign-extend-bool.ll
diff -c /dev/null llvm/test/Regression/CodeGen/Generic/2006-04-28-Sign-extend-bool.ll:1.1
*** /dev/null Fri Apr 28 16:52:34 2006
--- llvm/test/Regression/CodeGen/Generic/2006-04-28-Sign-extend-bool.ll Fri Apr 28 16:52:24 2006
***************
*** 0 ****
--- 1,10 ----
+ ; RUN: llvm-as < %s | llc
+
+ int %test(int %tmp93) {
+ %tmp98 = shl int %tmp93, ubyte 31 ; <int> [#uses=1]
+ %tmp99 = shr int %tmp98, ubyte 31 ; <int> [#uses=1]
+ %tmp99 = cast int %tmp99 to sbyte ; <sbyte> [#uses=1]
+ %tmp99100 = cast sbyte %tmp99 to int ; <int> [#uses=1]
+ ret int %tmp99100
+ }
+
More information about the llvm-commits
mailing list