summaryrefslogtreecommitdiff
path: root/test/CodeGen/Generic/2005-12-12-ExpandSextInreg.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-12-12 22:27:22 +0000
committerChris Lattner <sabre@nondot.org>2005-12-12 22:27:22 +0000
commita92dabb25994a27197bde414aae8d1f6b05727b2 (patch)
tree4a9467f05ba550f0394153eb1bff1947c800384f /test/CodeGen/Generic/2005-12-12-ExpandSextInreg.ll
parentd160d48a2b439955cb597dedd58ae2aec3154cd2 (diff)
downloadllvm-a92dabb25994a27197bde414aae8d1f6b05727b2.tar.gz
llvm-a92dabb25994a27197bde414aae8d1f6b05727b2.tar.bz2
llvm-a92dabb25994a27197bde414aae8d1f6b05727b2.tar.xz
Testcase for a problem that reid ran into
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24676 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Generic/2005-12-12-ExpandSextInreg.ll')
-rw-r--r--test/CodeGen/Generic/2005-12-12-ExpandSextInreg.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/2005-12-12-ExpandSextInreg.ll b/test/CodeGen/Generic/2005-12-12-ExpandSextInreg.ll
new file mode 100644
index 0000000000..20ef2d9f06
--- /dev/null
+++ b/test/CodeGen/Generic/2005-12-12-ExpandSextInreg.ll
@@ -0,0 +1,7 @@
+; RUN: llvm-as < %s | llc
+
+long %test(long %A) {
+ %B = cast long %A to sbyte
+ %C = cast sbyte %B to long
+ ret long %C
+}