summaryrefslogtreecommitdiff
path: root/test/CodeGen
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2011-03-09 21:05:32 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2011-03-09 21:05:32 +0000
commit842db07c6130fd809f2627545eed29393bb05d57 (patch)
treeab90c16907fa6fdf2ac5996d30eebcff1735edff /test/CodeGen
parent2c19ed9d67b44d75d46ecd594aea3404384ce6b5 (diff)
downloadllvm-842db07c6130fd809f2627545eed29393bb05d57.tar.gz
llvm-842db07c6130fd809f2627545eed29393bb05d57.tar.bz2
llvm-842db07c6130fd809f2627545eed29393bb05d57.tar.xz
Add a testcase for the addc improvements introduced some commits ago. Patch by Akira Hatanaka
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127358 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/Mips/addc.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/addc.ll b/test/CodeGen/Mips/addc.ll
new file mode 100644
index 0000000000..e5d05b1d6d
--- /dev/null
+++ b/test/CodeGen/Mips/addc.ll
@@ -0,0 +1,13 @@
+; RUN: llc < %s -march=mipsel | FileCheck %s
+; RUN: llc < %s -march=mips | FileCheck %s
+
+define void @f(i64 %l, i64* nocapture %p) nounwind {
+entry:
+; CHECK: lui
+; CHECK: ori
+; CHECK: addu
+ %add = add i64 %l, 1311768467294899695
+ store i64 %add, i64* %p, align 4
+ ret void
+}
+