summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Mips/addc.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/Mips/addc.ll')
-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 0000000..e5d05b1
--- /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
+}
+
OpenPOWER on IntegriCloud