diff options
Diffstat (limited to 'llvm/test/CodeGen/Mips/dsp-patterns.ll')
-rw-r--r-- | llvm/test/CodeGen/Mips/dsp-patterns.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Mips/dsp-patterns.ll b/llvm/test/CodeGen/Mips/dsp-patterns.ll index 4feba110297..2e5a9edc480 100644 --- a/llvm/test/CodeGen/Mips/dsp-patterns.ll +++ b/llvm/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 +} + |