]> granicus.if.org Git - llvm/commitdiff
[SystemZ] Add comment for ISD::FP_TO_UINT expansion.
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Thu, 2 Feb 2017 15:42:14 +0000 (15:42 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Thu, 2 Feb 2017 15:42:14 +0000 (15:42 +0000)
(Copied from the fp-conv-10.ll test to SystemZISelLowering.cpp)

Review: Ulrich Weigand

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293900 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SystemZ/SystemZISelLowering.cpp

index e5477f8c9c1c1d0f2c1dcdc14d44658b5c21b10c..afc9e60bdf215843428842fd82e8825cf33f7c26 100644 (file)
@@ -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);
     }