diff options
author | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2016-08-18 16:05:11 +0000 |
---|---|---|
committer | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2016-08-18 16:05:11 +0000 |
commit | 33e19fe1c419e69f91d98ed538198b6c07221356 (patch) | |
tree | 8c65574b80d4b40c95c3f575a1cfb7a35eed0d20 /llvm/lib/Target/AArch64/AArch64MachineLegalizer.cpp | |
parent | 71d033a17f325882c54db28920020854013e5834 (diff) | |
download | bcm5719-llvm-33e19fe1c419e69f91d98ed538198b6c07221356.tar.gz bcm5719-llvm-33e19fe1c419e69f91d98ed538198b6c07221356.zip |
[AArch64][GlobalISel] Select floating-point binary ops.
There is no FREM instruction, but the others are straightforward.
llvm-svn: 279081
Diffstat (limited to 'llvm/lib/Target/AArch64/AArch64MachineLegalizer.cpp')
-rw-r--r-- | llvm/lib/Target/AArch64/AArch64MachineLegalizer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64MachineLegalizer.cpp b/llvm/lib/Target/AArch64/AArch64MachineLegalizer.cpp index c04e93f14e6..36f7f4e46d0 100644 --- a/llvm/lib/Target/AArch64/AArch64MachineLegalizer.cpp +++ b/llvm/lib/Target/AArch64/AArch64MachineLegalizer.cpp @@ -46,6 +46,10 @@ AArch64MachineLegalizer::AArch64MachineLegalizer() { for (auto Ty : {s32, s64}) setAction(BinOp, Ty, Legal); + for (auto BinOp : {G_FADD, G_FSUB, G_FMUL, G_FDIV}) + for (auto Ty : {s32, s64}) + setAction(BinOp, Ty, Legal); + for (auto MemOp : {G_LOAD, G_STORE}) for (auto Ty : {s32, s64}) setAction(MemOp, Ty, Legal); |