public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/56603] New: Different _MM_HINT_TX values from ICC
@ 2013-03-12 15:50 hjl.tools at gmail dot com
  2024-03-16 21:11 ` [Bug target/56603] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: hjl.tools at gmail dot com @ 2013-03-12 15:50 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56603

             Bug #: 56603
           Summary: Different _MM_HINT_TX values from ICC
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hjl.tools@gmail.com
                CC: ubizjak@gmail.com


GCC defines:

/* Constants for use with _mm_prefetch.  */
enum _mm_hint
{
  _MM_HINT_T0 = 3, 
  _MM_HINT_T1 = 2, 
  _MM_HINT_T2 = 1, 
  _MM_HINT_NTA = 0
};

However, ICC defines

_MM_HINT_T0 = 1
_MM_HINT_T1 = 2
_MM_HINT_T2 = 3
_MM_HINT_NTA = 0

It seems a typo in GCC.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug target/56603] Different _MM_HINT_TX values from ICC
  2013-03-12 15:50 [Bug target/56603] New: Different _MM_HINT_TX values from ICC hjl.tools at gmail dot com
@ 2024-03-16 21:11 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-16 21:11 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56603

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The intrinsics guide:
https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_prefetch&ig_expand=5152,5153


_MM_HINT_T0 // 3, move data using the T0 hint. The PREFETCHT0 instruction will
be generated.
_MM_HINT_T1 // 2, move data using the T1 hint. The PREFETCHT1 instruction will
be generated.
_MM_HINT_T2 // 1, move data using the T2 hint. The PREFETCHT2 instruction will
be generated.

So GCC is correct here.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-03-16 21:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-12 15:50 [Bug target/56603] New: Different _MM_HINT_TX values from ICC hjl.tools at gmail dot com
2024-03-16 21:11 ` [Bug target/56603] " pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).