public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/49175] New: vect/pr48172.c execution failure for ARM GNU/Linux
@ 2011-05-26 16:49 janis at gcc dot gnu.org
  2011-05-26 17:37 ` [Bug tree-optimization/49175] " mikpe at it dot uu.se
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: janis at gcc dot gnu.org @ 2011-05-26 16:49 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: vect/pr48172.c execution failure for ARM GNU/Linux
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: janis@gcc.gnu.org


Test gcc.dg/vect/pr48172.c fails at execution for arm-none-linux-gnueabi with
"Illegal Instruction", with the test run on QEMU for -march=armv4t.  The test
also fails execution for armv5tel-brewer-linux-gnueabi, a native configuration:
<http://gcc.gnu.org/ml/gcc-testresults/2011-05/msg02524.html>.

The test was added on 2011-05-12, but the test program also fails with GCC 4.6
and 4.5.


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

* [Bug tree-optimization/49175] vect/pr48172.c execution failure for ARM GNU/Linux
  2011-05-26 16:49 [Bug tree-optimization/49175] New: vect/pr48172.c execution failure for ARM GNU/Linux janis at gcc dot gnu.org
@ 2011-05-26 17:37 ` mikpe at it dot uu.se
  2011-05-31 21:37 ` [Bug testsuite/49175] " ramana at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: mikpe at it dot uu.se @ 2011-05-26 17:37 UTC (permalink / raw)
  To: gcc-bugs

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

Mikael Pettersson <mikpe at it dot uu.se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikpe at it dot uu.se

--- Comment #1 from Mikael Pettersson <mikpe at it dot uu.se> 2011-05-26 17:11:12 UTC ---
I checked the failure on armv5tel-linux-gnueabi: it's due to the test case
containing VFP (Neon?) instructions, so it gets a SIGILL at runtime.

According to gcc/testsuite/gcc/gcc.log it's compiled with -mfpu=neon, which
explains the failure.  Does it need a

{ dg-require-effective-target vect_int }

or something like that?


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

* [Bug testsuite/49175] vect/pr48172.c execution failure for ARM GNU/Linux
  2011-05-26 16:49 [Bug tree-optimization/49175] New: vect/pr48172.c execution failure for ARM GNU/Linux janis at gcc dot gnu.org
  2011-05-26 17:37 ` [Bug tree-optimization/49175] " mikpe at it dot uu.se
@ 2011-05-31 21:37 ` ramana at gcc dot gnu.org
  2011-05-31 22:50 ` janis at gcc dot gnu.org
  2021-08-30  1:49 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: ramana at gcc dot gnu.org @ 2011-05-31 21:37 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.05.31 21:08:33
                 CC|                            |ramana at gcc dot gnu.org
          Component|tree-optimization           |testsuite
     Ever Confirmed|0                           |1

--- Comment #2 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> 2011-05-31 21:08:33 UTC ---
This is more a testism rather than anything else and I think the correct option
is to add a dg-require-effective-target "vect_int" . 

It's also the case in gcc 4.6 . 

cheers
Ramana


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

* [Bug testsuite/49175] vect/pr48172.c execution failure for ARM GNU/Linux
  2011-05-26 16:49 [Bug tree-optimization/49175] New: vect/pr48172.c execution failure for ARM GNU/Linux janis at gcc dot gnu.org
  2011-05-26 17:37 ` [Bug tree-optimization/49175] " mikpe at it dot uu.se
  2011-05-31 21:37 ` [Bug testsuite/49175] " ramana at gcc dot gnu.org
@ 2011-05-31 22:50 ` janis at gcc dot gnu.org
  2021-08-30  1:49 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: janis at gcc dot gnu.org @ 2011-05-31 22:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Janis Johnson <janis at gcc dot gnu.org> 2011-05-31 22:43:42 UTC ---
Usually the vect tests only require effective targets like vect_int if they are
checking that particular optimizations took place.  There are no such checks in
this test.

The vector tests use neon options if check_effective_target_arm_neon_hw (from
lib/target-supports.exp) returns true.  The test the proc executes is:

        int
        main (void)
        {
          long long a = 0, b = 1;
          asm ("vorr %P0, %P1, %P2"
               : "=w" (a)
               : "0" (a), "w" (b));
          return (a != 1);
        }

compiled with neon options. That test apparently passes, but there's a neon
instruction generated for the test that fails.  Should the test used for
arm_neon_hw be different?


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

* [Bug testsuite/49175] vect/pr48172.c execution failure for ARM GNU/Linux
  2011-05-26 16:49 [Bug tree-optimization/49175] New: vect/pr48172.c execution failure for ARM GNU/Linux janis at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2011-05-31 22:50 ` janis at gcc dot gnu.org
@ 2021-08-30  1:49 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-30  1:49 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
   Target Milestone|---                         |4.7.0
         Resolution|---                         |FIXED

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed by r0-108958 . The bug was only there for a few weeks and was fixed by
the time this bug report was filed even :).  The problem was "dg-do run"
overode what vect.exp figured out.


https://gcc.gnu.org/pipermail/gcc-patches/2011-May/313648.html

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

end of thread, other threads:[~2021-08-30  1:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-26 16:49 [Bug tree-optimization/49175] New: vect/pr48172.c execution failure for ARM GNU/Linux janis at gcc dot gnu.org
2011-05-26 17:37 ` [Bug tree-optimization/49175] " mikpe at it dot uu.se
2011-05-31 21:37 ` [Bug testsuite/49175] " ramana at gcc dot gnu.org
2011-05-31 22:50 ` janis at gcc dot gnu.org
2021-08-30  1:49 ` 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).