summaryrefslogtreecommitdiff
path: root/test/CodeGen/Mips
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2013-04-12 22:24:52 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2013-04-12 22:24:52 +0000
commit6d224459f42fd1e2a57479b6b60e55053dce38d7 (patch)
tree7f019a688d05e9c4de387507329bd864e81d32df /test/CodeGen/Mips
parent9367b8d4f254d9e5cccb15334cc1a969c5be0d31 (diff)
downloadllvm-6d224459f42fd1e2a57479b6b60e55053dce38d7.tar.gz
llvm-6d224459f42fd1e2a57479b6b60e55053dce38d7.tar.bz2
llvm-6d224459f42fd1e2a57479b6b60e55053dce38d7.tar.xz
[mips] Instruction selection patterns for carry-setting and using add
instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179421 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Mips')
-rw-r--r--test/CodeGen/Mips/dsp-patterns.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/dsp-patterns.ll b/test/CodeGen/Mips/dsp-patterns.ll
index 4feba11029..2e5a9edc48 100644
--- a/test/CodeGen/Mips/dsp-patterns.ll
+++ b/test/CodeGen/Mips/dsp-patterns.ll
@@ -117,3 +117,14 @@ entry:
%.fca.0.insert = insertvalue { i32 } undef, i32 %2, 0
ret { i32 } %.fca.0.insert
}
+
+; R1: test_addsc:
+; R1: addsc ${{[0-9]+}}
+; R1: addwc ${{[0-9]+}}
+
+define i64 @test_addsc(i64 %a, i64 %b) #1 {
+entry:
+ %add = add nsw i64 %b, %a
+ ret i64 %add
+}
+