summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-05-10 05:11:24 +0000
committerChris Lattner <sabre@nondot.org>2004-05-10 05:11:24 +0000
commit02eac3935949b572439c799a5a8ac334d581b42c (patch)
tree3cc41669ccdf2b9ac31f6a9ba17ab746b1c2e16d /test
parent44ff57a56b092289a304a89da9043d924c068b27 (diff)
downloadllvm-02eac3935949b572439c799a5a8ac334d581b42c.tar.gz
llvm-02eac3935949b572439c799a5a8ac334d581b42c.tar.bz2
llvm-02eac3935949b572439c799a5a8ac334d581b42c.tar.xz
Testcase for PR337, which was reduced by Reid Spencer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13443 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/Generic/2004-05-09-LiveVarPartialRegister.llx15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/2004-05-09-LiveVarPartialRegister.llx b/test/CodeGen/Generic/2004-05-09-LiveVarPartialRegister.llx
new file mode 100644
index 0000000000..3db9e4a27c
--- /dev/null
+++ b/test/CodeGen/Generic/2004-05-09-LiveVarPartialRegister.llx
@@ -0,0 +1,15 @@
+; RUN: llvm-as < %s | lli
+
+%global_long_1 = linkonce global long 7
+%global_long_2 = linkonce global long 49
+
+implementation ; Functions:
+
+int %main() {
+ %l1 = load long* %global_long_1
+ %l2 = load long* %global_long_2
+ %cond = setle long %l1, %l2
+ %cast2 = cast bool %cond to int
+ %RV = sub int 1, %cast2
+ ret int %RV
+}