summaryrefslogtreecommitdiffstats
path: root/llvm/test/Regression/CodeGen/Generic
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-04-28 21:52:24 +0000
committerChris Lattner <sabre@nondot.org>2006-04-28 21:52:24 +0000
commita2cef87a30d99a10109bc564e38131c845b72d67 (patch)
tree6dd7c52ded1775e70ad533d1a91b808ba7c7ee26 /llvm/test/Regression/CodeGen/Generic
parent88decded82b3b7841922c88cf4b5d8ad66c9a66d (diff)
downloadbcm5719-llvm-a2cef87a30d99a10109bc564e38131c845b72d67.tar.gz
bcm5719-llvm-a2cef87a30d99a10109bc564e38131c845b72d67.zip
testcase that crashes the ppc backend, which can't sextinreg(i1)
llvm-svn: 28016
Diffstat (limited to 'llvm/test/Regression/CodeGen/Generic')
-rw-r--r--llvm/test/Regression/CodeGen/Generic/2006-04-28-Sign-extend-bool.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/Regression/CodeGen/Generic/2006-04-28-Sign-extend-bool.ll b/llvm/test/Regression/CodeGen/Generic/2006-04-28-Sign-extend-bool.ll
new file mode 100644
index 00000000000..719c66d552e
--- /dev/null
+++ b/llvm/test/Regression/CodeGen/Generic/2006-04-28-Sign-extend-bool.ll
@@ -0,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
+}
+
OpenPOWER on IntegriCloud