diff options
author | Petar Jovanovic <petar.jovanovic@imgtec.com> | 2017-06-07 14:48:46 +0000 |
---|---|---|
committer | Petar Jovanovic <petar.jovanovic@imgtec.com> | 2017-06-07 14:48:46 +0000 |
commit | 2f5f8e947a14399b796d3f2c861056e9e654853c (patch) | |
tree | 4c635063fea77739cb83027b66485be48c302eb1 /llvm/test/CodeGen/Mips/dsp-r1.ll | |
parent | af515d94972443b2d7ffdb879e5ff9fdaa2cf9ec (diff) | |
download | bcm5719-llvm-2f5f8e947a14399b796d3f2c861056e9e654853c.tar.gz bcm5719-llvm-2f5f8e947a14399b796d3f2c861056e9e654853c.zip |
[mips][dsp] Modify repl.ph to accept signed immediate values
Changed immediate type for repl.ph from uimm10 to simm10 as per the specs.
Repl.qb still accepts uimm8. Both instructions now mimic the behaviour of
GNU as.
Patch by Stefan Maksimovic.
Differential Revision: https://reviews.llvm.org/D33594
llvm-svn: 304918
Diffstat (limited to 'llvm/test/CodeGen/Mips/dsp-r1.ll')
-rw-r--r-- | llvm/test/CodeGen/Mips/dsp-r1.ll | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/Mips/dsp-r1.ll b/llvm/test/CodeGen/Mips/dsp-r1.ll index edd6258270a..90eb14a75b4 100644 --- a/llvm/test/CodeGen/Mips/dsp-r1.ll +++ b/llvm/test/CodeGen/Mips/dsp-r1.ll @@ -1172,9 +1172,19 @@ entry: ret { i32 } %.fca.0.insert } +define { i32 } @test__builtin_mips_repl_ph2(i32 %i0) nounwind readnone { +entry: +; CHECK: repl.ph + + %0 = tail call <2 x i16> @llvm.mips.repl.ph(i32 -2) + %1 = bitcast <2 x i16> %0 to i32 + %.fca.0.insert = insertvalue { i32 } undef, i32 %1, 0 + ret { i32 } %.fca.0.insert +} + declare <2 x i16> @llvm.mips.repl.ph(i32) nounwind readnone -define { i32 } @test__builtin_mips_repl_ph2(i32 %i0, i32 %a0) nounwind readnone { +define { i32 } @test__builtin_mips_repl_ph3(i32 %i0, i32 %a0) nounwind readnone { entry: ; CHECK: replv.ph |