summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>2017-02-02 15:42:14 +0000
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>2017-02-02 15:42:14 +0000
commitb7a2ef83756d6223b2fafa8dfc120d95107875b5 (patch)
treec8f160ef951c5feebce80ea95e55d871edc8108b
parentbc4dc9b4b9eec4beba326729dff5c4768492db2d (diff)
downloadbcm5719-llvm-b7a2ef83756d6223b2fafa8dfc120d95107875b5.tar.gz
bcm5719-llvm-b7a2ef83756d6223b2fafa8dfc120d95107875b5.zip
[SystemZ] Add comment for ISD::FP_TO_UINT expansion.
(Copied from the fp-conv-10.ll test to SystemZISelLowering.cpp) Review: Ulrich Weigand llvm-svn: 293900
-rw-r--r--llvm/lib/Target/SystemZ/SystemZISelLowering.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp b/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
index e5477f8c9c1..afc9e60bdf2 100644
--- a/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
@@ -194,6 +194,9 @@ SystemZTargetLowering::SystemZTargetLowering(const TargetMachine &TM,
setOperationAction(ISD::UMUL_LOHI, VT, Custom);
// Only z196 and above have native support for conversions to unsigned.
+ // On z10, promoting to i64 doesn't generate an inexact condition for
+ // values that are outside the i32 range but in the i64 range, so use
+ // the default expansion.
if (!Subtarget.hasFPExtension())
setOperationAction(ISD::FP_TO_UINT, VT, Expand);
}
OpenPOWER on IntegriCloud