diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2017-09-22 09:50:52 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2017-09-22 09:50:52 +0000 |
commit | df96e34e7f9843dfd4f9691fa75a882d896241a1 (patch) | |
tree | bfccee69394494600b6ea6bedba99f747cf5c091 /test/CodeGen/PowerPC/testComparesllless.ll | |
parent | fe5f8bde97a7df8eeae4fd7f1d18bc213564ac74 (diff) |
[ARM] Add missing selection patterns for vnmla
For the following function:
double fn1(double d0, double d1, double d2) {
double a = -d0 - d1 * d2;
return a;
}
on ARM, LLVM generates code along the lines of
vneg.f64 d0, d0
vmls.f64 d0, d1, d2
i.e., a negate and a multiply-subtract.
The attached patch adds instruction selection patterns to allow it to generate the single instruction
vnmla.f64 d0, d1, d2
(multiply-add with negation) instead, like GCC does.
Committed on behalf of @gergo- (Gergö Barany)
Differential Revision: https://reviews.llvm.org/D35911
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313972 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/testComparesllless.ll')
0 files changed, 0 insertions, 0 deletions