https://bugs.llvm.org/show_bug.cgi?id=37751

            Bug ID: 37751
           Summary: [X86] CVTTPD2DQ/CVTTPS2DQ intrinsics must not map to
                    ISD::FP_TO_SINT etc.
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
          Assignee: unassignedb...@nondot.org
          Reporter: llvm-...@redking.me.uk
                CC: andrea.dibia...@gmail.com, craig.top...@gmail.com,
                    efrie...@codeaurora.org, fil...@gmail.com,
                    greg.bedw...@sony.com, llvm-bugs@lists.llvm.org,
                    spatel+l...@rotateright.com

Now that we have FP_TO_*INT combines in DAGCombine (rL330437 for rounding
etc.), we can no longer safely map x86 f2i intrinsics to generic types:

X86_INTRINSIC_DATA(avx_cvtt_ps2dq_256,INTR_TYPE_1OP, ISD::FP_TO_SINT, 0)

as this will lose the intrinsics' special case handling for out of range
values.

All these values need mapping to the X86ISD equivalents (CVTTP2SI/CVTTP2UI)
instead and suitable constant folding support adding so we don't lose any
functionality.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to