[llvm-commits] [llvm] r127358 - /llvm/trunk/test/CodeGen/Mips/addc.ll
Bruno Cardoso Lopes
bruno.cardoso at gmail.com
Wed Mar 9 13:05:32 PST 2011
Author: bruno
Date: Wed Mar 9 15:05:32 2011
New Revision: 127358
URL: http://llvm.org/viewvc/llvm-project?rev=127358&view=rev
Log:
Add a testcase for the addc improvements introduced some commits ago. Patch by Akira Hatanaka
Added:
llvm/trunk/test/CodeGen/Mips/addc.ll
Added: llvm/trunk/test/CodeGen/Mips/addc.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Mips/addc.ll?rev=127358&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/Mips/addc.ll (added)
+++ llvm/trunk/test/CodeGen/Mips/addc.ll Wed Mar 9 15:05:32 2011
@@ -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
+}
+
More information about the llvm-commits
mailing list