public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/48252] New: problem with consecutive vzip, vuzp and vtrn
@ 2011-03-23 13:07 johan.kristell at axis dot com
  2011-03-29  8:28 ` [Bug target/48252] ARM neon: " johan.kristell at axis dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: johan.kristell at axis dot com @ 2011-03-23 13:07 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: problem with consecutive vzip, vuzp and vtrn
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: johan.kristell@axis.com


Consecutive vzip, vuzp or vtrn intrinsic overwrite destination register.

Compiler:

gcc -v
Using built-in specs.
COLLECT_GCC=/usr/local/gcc/4.6/bin/gcc
COLLECT_LTO_WRAPPER=/usr/local/gcc/4.6/libexec/gcc/armv7l-unknown-linux-gnueabi/4.6.0/lto-wrapper
Target: armv7l-unknown-linux-gnueabi
Configured with: ../gcc-4.6/configure --prefix=/usr/local/gcc/4.6
--enable-languages=c --with-arch=armv7-a --with-float=softfp
--with-fpu=vfpv3-d16
Thread model: posix
gcc version 4.6.0 20110323 (prerelease) (GCC) 


Test case:

#include <arm_neon.h>
#include <stdio.h>

int main(void)
{
    uint8x8_t v1 = {1, 1, 1, 1, 1, 1, 1, 1};
    uint8x8_t v2 = {2, 2, 2, 2, 2, 2, 2, 2};
    uint8x8x2_t vd1, vd2;
    union {uint8x8_t v; uint8_t buf[8];} d1, d2, d3, d4;
    int i;

    vd1 = vzip_u8(v1, vdup_n_u8(0));
    vd2 = vzip_u8(v2, vdup_n_u8(0));

    vst1_u8(d1.buf, vd1.val[0]);
    vst1_u8(d2.buf, vd1.val[1]);
    vst1_u8(d3.buf, vd2.val[0]);
    vst1_u8(d4.buf, vd2.val[1]);

    printf("  d1  d2  d3  d4\n");
    for (i = 0; i < 8; i++) {
        printf("%4d%4d%4d%4d\n",
        d1.buf[i],
        d2.buf[i],
        d3.buf[i],
        d4.buf[i]);
    }

    return 0;
}

---------------------

Compile flags: -mfloat-abi=softfp -mfpu=neon -O2

Output:

  d1  d2  d3  d4
   1   1   2   1
   0   0   0   0
   1   1   2   1
   0   0   0   0
   1   1   2   1
   0   0   0   0
   1   1   2   1
   0   0   0   0

d4 is wrong.


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

* [Bug target/48252] ARM neon: problem with consecutive vzip, vuzp and vtrn
  2011-03-23 13:07 [Bug target/48252] New: problem with consecutive vzip, vuzp and vtrn johan.kristell at axis dot com
@ 2011-03-29  8:28 ` johan.kristell at axis dot com
  2011-04-04 21:21 ` ramana at gcc dot gnu.org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: johan.kristell at axis dot com @ 2011-03-29  8:28 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Johan Kristell <johan.kristell at axis dot com> 2011-03-29 07:18:37 UTC ---
Some additional info about the gcc version tested.

URL: svn://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch
Revision: 171340


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

* [Bug target/48252] ARM neon: problem with consecutive vzip, vuzp and vtrn
  2011-03-23 13:07 [Bug target/48252] New: problem with consecutive vzip, vuzp and vtrn johan.kristell at axis dot com
  2011-03-29  8:28 ` [Bug target/48252] ARM neon: " johan.kristell at axis dot com
@ 2011-04-04 21:21 ` ramana at gcc dot gnu.org
  2011-04-05  9:34 ` irar at il dot ibm.com
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ramana at gcc dot gnu.org @ 2011-04-04 21:21 UTC (permalink / raw)
  To: gcc-bugs

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

Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.04.04 21:21:06
                 CC|                            |ira at gcc dot gnu.org,
                   |                            |ramana at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #2 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> 2011-04-04 21:21:06 UTC ---
Confirmed . This IIRC is something for which Ira had a patch. Adding her to the
CC.

ramana


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

* [Bug target/48252] ARM neon: problem with consecutive vzip, vuzp and vtrn
  2011-03-23 13:07 [Bug target/48252] New: problem with consecutive vzip, vuzp and vtrn johan.kristell at axis dot com
  2011-03-29  8:28 ` [Bug target/48252] ARM neon: " johan.kristell at axis dot com
  2011-04-04 21:21 ` ramana at gcc dot gnu.org
@ 2011-04-05  9:34 ` irar at il dot ibm.com
  2011-04-05  9:36 ` irar at il dot ibm.com
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: irar at il dot ibm.com @ 2011-04-05  9:34 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Ira Rosen <irar at il dot ibm.com> 2011-04-05 09:33:40 UTC ---
Created attachment 23881
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23881
patch


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

* [Bug target/48252] ARM neon: problem with consecutive vzip, vuzp and vtrn
  2011-03-23 13:07 [Bug target/48252] New: problem with consecutive vzip, vuzp and vtrn johan.kristell at axis dot com
                   ` (2 preceding siblings ...)
  2011-04-05  9:34 ` irar at il dot ibm.com
@ 2011-04-05  9:36 ` irar at il dot ibm.com
  2011-04-18  7:18 ` irar at gcc dot gnu.org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: irar at il dot ibm.com @ 2011-04-05  9:36 UTC (permalink / raw)
  To: gcc-bugs

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

Ira Rosen <irar at il dot ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |irar at il dot ibm.com

--- Comment #4 from Ira Rosen <irar at il dot ibm.com> 2011-04-05 09:34:37 UTC ---
I attached the patch. I am going to test and submit it.

Ira


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

* [Bug target/48252] ARM neon: problem with consecutive vzip, vuzp and vtrn
  2011-03-23 13:07 [Bug target/48252] New: problem with consecutive vzip, vuzp and vtrn johan.kristell at axis dot com
                   ` (3 preceding siblings ...)
  2011-04-05  9:36 ` irar at il dot ibm.com
@ 2011-04-18  7:18 ` irar at gcc dot gnu.org
  2011-05-05  7:52 ` irar at gcc dot gnu.org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: irar at gcc dot gnu.org @ 2011-04-18  7:18 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from irar at gcc dot gnu.org 2011-04-18 07:14:26 UTC ---
Author: irar
Date: Mon Apr 18 07:14:22 2011
New Revision: 172639

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172639
Log:

    PR target/48252
    * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
    to match neon_vzip/vuzp/vtrn_internal.
    * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
    outputs explicitly dependent on both inputs.
    (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.


Added:
    trunk/gcc/testsuite/gcc.target/arm/pr48252.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/arm/arm.c
    trunk/gcc/config/arm/neon.md
    trunk/gcc/testsuite/ChangeLog


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

* [Bug target/48252] ARM neon: problem with consecutive vzip, vuzp and vtrn
  2011-03-23 13:07 [Bug target/48252] New: problem with consecutive vzip, vuzp and vtrn johan.kristell at axis dot com
                   ` (4 preceding siblings ...)
  2011-04-18  7:18 ` irar at gcc dot gnu.org
@ 2011-05-05  7:52 ` irar at gcc dot gnu.org
  2011-05-05  8:52 ` irar at gcc dot gnu.org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: irar at gcc dot gnu.org @ 2011-05-05  7:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from irar at gcc dot gnu.org 2011-05-05 07:35:03 UTC ---
Author: irar
Date: Thu May  5 07:34:59 2011
New Revision: 173417

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173417
Log:

    Backport from mainline:
    2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
            Ira Rosen  <ira.rosen@linaro.org>

    PR target/48252
    * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
    to match neon_vzip/vuzp/vtrn_internal.
    * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
    outputs explicitly dependent on both inputs.
    (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.


Added:
    branches/gcc-4_5-branch/gcc/testsuite/gcc.target/arm/pr48252.c
Modified:
    branches/gcc-4_5-branch/gcc/ChangeLog
    branches/gcc-4_5-branch/gcc/config/arm/arm.c
    branches/gcc-4_5-branch/gcc/config/arm/neon.md
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog


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

* [Bug target/48252] ARM neon: problem with consecutive vzip, vuzp and vtrn
  2011-03-23 13:07 [Bug target/48252] New: problem with consecutive vzip, vuzp and vtrn johan.kristell at axis dot com
                   ` (5 preceding siblings ...)
  2011-05-05  7:52 ` irar at gcc dot gnu.org
@ 2011-05-05  8:52 ` irar at gcc dot gnu.org
  2011-05-05  9:00 ` irar at il dot ibm.com
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: irar at gcc dot gnu.org @ 2011-05-05  8:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from irar at gcc dot gnu.org 2011-05-05 08:39:47 UTC ---
Author: irar
Date: Thu May  5 08:39:40 2011
New Revision: 173418

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173418
Log:

    Backport from mainline:
    2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
            Ira Rosen  <ira.rosen@linaro.org>

    PR target/48252
    * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
    to match neon_vzip/vuzp/vtrn_internal.
    * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
    outputs explicitly dependent on both inputs.
    (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.


Added:
    branches/gcc-4_6-branch/gcc/testsuite/gcc.target/arm/pr48252.c
Modified:
    branches/gcc-4_6-branch/gcc/ChangeLog
    branches/gcc-4_6-branch/gcc/config/arm/arm.c
    branches/gcc-4_6-branch/gcc/config/arm/neon.md
    branches/gcc-4_6-branch/gcc/testsuite/ChangeLog


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

* [Bug target/48252] ARM neon: problem with consecutive vzip, vuzp and vtrn
  2011-03-23 13:07 [Bug target/48252] New: problem with consecutive vzip, vuzp and vtrn johan.kristell at axis dot com
                   ` (6 preceding siblings ...)
  2011-05-05  8:52 ` irar at gcc dot gnu.org
@ 2011-05-05  9:00 ` irar at il dot ibm.com
  2011-05-06 10:26 ` ramana at gcc dot gnu.org
  2011-05-20  8:16 ` irar at il dot ibm.com
  9 siblings, 0 replies; 11+ messages in thread
From: irar at il dot ibm.com @ 2011-05-05  9:00 UTC (permalink / raw)
  To: gcc-bugs

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

Ira Rosen <irar at il dot ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #8 from Ira Rosen <irar at il dot ibm.com> 2011-05-05 08:40:53 UTC ---
Fixed on 4.5, 4.6 and 4.7.


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

* [Bug target/48252] ARM neon: problem with consecutive vzip, vuzp and vtrn
  2011-03-23 13:07 [Bug target/48252] New: problem with consecutive vzip, vuzp and vtrn johan.kristell at axis dot com
                   ` (7 preceding siblings ...)
  2011-05-05  9:00 ` irar at il dot ibm.com
@ 2011-05-06 10:26 ` ramana at gcc dot gnu.org
  2011-05-20  8:16 ` irar at il dot ibm.com
  9 siblings, 0 replies; 11+ messages in thread
From: ramana at gcc dot gnu.org @ 2011-05-06 10:26 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> 2011-05-06 10:21:30 UTC ---
Author: ramana
Date: Fri May  6 10:21:26 2011
New Revision: 173480

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173480
Log:

2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>

        PR target/48252
        * config/arm/neon.md (neon_vtrn<mode>): Fix typo
        from earlier commit.


Modified:
    branches/gcc-4_6-branch/gcc/ChangeLog
    branches/gcc-4_6-branch/gcc/config/arm/neon.md


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

* [Bug target/48252] ARM neon: problem with consecutive vzip, vuzp and vtrn
  2011-03-23 13:07 [Bug target/48252] New: problem with consecutive vzip, vuzp and vtrn johan.kristell at axis dot com
                   ` (8 preceding siblings ...)
  2011-05-06 10:26 ` ramana at gcc dot gnu.org
@ 2011-05-20  8:16 ` irar at il dot ibm.com
  9 siblings, 0 replies; 11+ messages in thread
From: irar at il dot ibm.com @ 2011-05-20  8:16 UTC (permalink / raw)
  To: gcc-bugs

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

Ira Rosen <irar at il dot ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hules at free dot fr

--- Comment #10 from Ira Rosen <irar at il dot ibm.com> 2011-05-20 07:52:14 UTC ---
*** Bug 49061 has been marked as a duplicate of this bug. ***


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

end of thread, other threads:[~2011-05-20  8:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-23 13:07 [Bug target/48252] New: problem with consecutive vzip, vuzp and vtrn johan.kristell at axis dot com
2011-03-29  8:28 ` [Bug target/48252] ARM neon: " johan.kristell at axis dot com
2011-04-04 21:21 ` ramana at gcc dot gnu.org
2011-04-05  9:34 ` irar at il dot ibm.com
2011-04-05  9:36 ` irar at il dot ibm.com
2011-04-18  7:18 ` irar at gcc dot gnu.org
2011-05-05  7:52 ` irar at gcc dot gnu.org
2011-05-05  8:52 ` irar at gcc dot gnu.org
2011-05-05  9:00 ` irar at il dot ibm.com
2011-05-06 10:26 ` ramana at gcc dot gnu.org
2011-05-20  8:16 ` irar at il dot ibm.com

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).