summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Generic/2006-04-28-Sign-extend-bool.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/Generic/2006-04-28-Sign-extend-bool.ll')
-rw-r--r--llvm/test/CodeGen/Generic/2006-04-28-Sign-extend-bool.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Generic/2006-04-28-Sign-extend-bool.ll b/llvm/test/CodeGen/Generic/2006-04-28-Sign-extend-bool.ll
new file mode 100644
index 00000000000..068d6807b81
--- /dev/null
+++ b/llvm/test/CodeGen/Generic/2006-04-28-Sign-extend-bool.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-upgrade < %s | llvm-as | 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