public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/51393] New: Wrong parameter type for _mm256_insert_epi64 in avxintrin.h
@ 2011-12-03 11:19 Jeremie.Detrey at loria dot fr
  2011-12-03 11:21 ` [Bug target/51393] " Jeremie.Detrey at loria dot fr
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Jeremie.Detrey at loria dot fr @ 2011-12-03 11:19 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51393
           Summary: Wrong parameter type for _mm256_insert_epi64 in
                    avxintrin.h
    Classification: Unclassified
           Product: gcc
           Version: 4.6.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: Jeremie.Detrey@loria.fr


Created attachment 25978
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25978
Minimal example.

In avxintrin.h:762, the second parameter (__D) of the function
_mm256_insert_epi64 is declared as int where it should be long long.

This results in an uncorrect behavior (truncation to 32 bits then sign
extension) when the attached minimal program is compiled with options -O3
-mavx. A look at the corresponding assembler code confirms this:

  [...]
  vpxor   %xmm0, %xmm0, %xmm0
  movslq  %ebx, %rax
  vpinsrq $0, %rax, %xmm0, %xmm0
  [...]


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

end of thread, other threads:[~2011-12-08 10:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-03 11:19 [Bug target/51393] New: Wrong parameter type for _mm256_insert_epi64 in avxintrin.h Jeremie.Detrey at loria dot fr
2011-12-03 11:21 ` [Bug target/51393] " Jeremie.Detrey at loria dot fr
2011-12-03 16:56 ` jakub at gcc dot gnu.org
2011-12-03 17:26 ` Jeremie.Detrey at loria dot fr
2011-12-04 12:48 ` uros at gcc dot gnu.org
2011-12-04 12:52 ` Jeremie.Detrey at loria dot fr
2011-12-04 13:24 ` uros at gcc dot gnu.org
2011-12-04 13:39 ` uros at gcc dot gnu.org
2011-12-04 13:43 ` ubizjak at gmail dot com
2011-12-08 10:59 ` jakub 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).