summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2012-11-15 22:44:27 +0000
committerEli Friedman <eli.friedman@gmail.com>2012-11-15 22:44:27 +0000
commite6385e61b57bbba1b25187a9b70f7f4213517988 (patch)
tree274beea334df6f8c32b748dd187b98f05c3a9aa6 /llvm/lib/Target/ARM
parentb42f3af3361ae717d355133f926631a2e5ec16e7 (diff)
downloadbcm5719-llvm-e6385e61b57bbba1b25187a9b70f7f4213517988.tar.gz
bcm5719-llvm-e6385e61b57bbba1b25187a9b70f7f4213517988.zip
Mark FP_ROUND for converting NEON v2f64 to v2f32 as expand. Add a missing
case to vector legalization so this actually works. Patch by Pete Couperus. Fixes PR12540. llvm-svn: 168107
Diffstat (limited to 'llvm/lib/Target/ARM')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index c2e084816f4..f53d6642689 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -544,6 +544,8 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM)
setOperationAction(ISD::FP_TO_UINT, MVT::v4i16, Custom);
setOperationAction(ISD::FP_TO_SINT, MVT::v4i16, Custom);
+ setOperationAction(ISD::FP_ROUND, MVT::v2f32, Expand);
+
setTargetDAGCombine(ISD::INTRINSIC_VOID);
setTargetDAGCombine(ISD::INTRINSIC_W_CHAIN);
setTargetDAGCombine(ISD::INTRINSIC_WO_CHAIN);
OpenPOWER on IntegriCloud