aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/AArch64/AArch64MachineLegalizer.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2016-08-26 17:46:19 +0000
committerTim Northover <tnorthover@apple.com>2016-08-26 17:46:19 +0000
commit30bd36e3fc17dcc05a9cfc30f24eb714ba8e9a01 (patch)
tree0cef0caeaf76534824753bcca161ab74072744f6 /llvm/lib/Target/AArch64/AArch64MachineLegalizer.cpp
parent051b8ad3d915d01cd61115f70a67aa1c6a89594d (diff)
downloadllvm-30bd36e3fc17dcc05a9cfc30f24eb714ba8e9a01.zip
llvm-30bd36e3fc17dcc05a9cfc30f24eb714ba8e9a01.tar.gz
llvm-30bd36e3fc17dcc05a9cfc30f24eb714ba8e9a01.tar.bz2
GlobalISel: mark G_FCMP legal on float & double.
llvm-svn: 279844
Diffstat (limited to 'llvm/lib/Target/AArch64/AArch64MachineLegalizer.cpp')
-rw-r--r--llvm/lib/Target/AArch64/AArch64MachineLegalizer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64MachineLegalizer.cpp b/llvm/lib/Target/AArch64/AArch64MachineLegalizer.cpp
index fef98c9..ec5f591 100644
--- a/llvm/lib/Target/AArch64/AArch64MachineLegalizer.cpp
+++ b/llvm/lib/Target/AArch64/AArch64MachineLegalizer.cpp
@@ -97,6 +97,10 @@ AArch64MachineLegalizer::AArch64MachineLegalizer() {
setAction({G_ICMP, 1, Ty}, WidenScalar);
}
+ setAction({G_FCMP, s1}, Legal);
+ setAction({G_FCMP, 1, s32}, Legal);
+ setAction({G_FCMP, 1, s64}, Legal);
+
// Extensions
for (auto Ty : { s1, s8, s16, s32, s64 }) {
setAction({G_ZEXT, Ty}, Legal);