public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/55276] New: [4.8 regression] ppc: callee-saved vector registers not preserved
@ 2012-11-11 21:06 mans at mansr dot com
  2012-11-11 21:07 ` [Bug target/55276] " mans at mansr dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: mans at mansr dot com @ 2012-11-11 21:06 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55276
           Summary: [4.8 regression] ppc: callee-saved vector registers
                    not preserved
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: mans@mansr.com


Created attachment 28662
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28662
Preserve callee-saved vector registers even when vrsave is not in use

Since r191986 the callee-saved vector registers v20-v31 are not preserved when
TARGET_ALTIVEC_VRSAVE is unset.  The attached patch fixes this.


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

* [Bug target/55276] [4.8 regression] ppc: callee-saved vector registers not preserved
  2012-11-11 21:06 [Bug target/55276] New: [4.8 regression] ppc: callee-saved vector registers not preserved mans at mansr dot com
@ 2012-11-11 21:07 ` mans at mansr dot com
  2012-11-19 15:40 ` dje at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: mans at mansr dot com @ 2012-11-11 21:07 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #1 from Mans Rullgard <mans at mansr dot com> 2012-11-11 21:07:12 UTC ---
Created attachment 28663
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28663
Test case


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

* [Bug target/55276] [4.8 regression] ppc: callee-saved vector registers not preserved
  2012-11-11 21:06 [Bug target/55276] New: [4.8 regression] ppc: callee-saved vector registers not preserved mans at mansr dot com
  2012-11-11 21:07 ` [Bug target/55276] " mans at mansr dot com
@ 2012-11-19 15:40 ` dje at gcc dot gnu.org
  2012-11-19 16:59 ` dje at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: dje at gcc dot gnu.org @ 2012-11-19 15:40 UTC (permalink / raw)
  To: gcc-bugs


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

David Edelsohn <dje at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-11-19
     Ever Confirmed|0                           |1

--- Comment #2 from David Edelsohn <dje at gcc dot gnu.org> 2012-11-19 15:40:05 UTC ---
The patch looks correct, but the testcase only demonstrates the problem by
looking at assembly, not by checking for correct results.


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

* [Bug target/55276] [4.8 regression] ppc: callee-saved vector registers not preserved
  2012-11-11 21:06 [Bug target/55276] New: [4.8 regression] ppc: callee-saved vector registers not preserved mans at mansr dot com
  2012-11-11 21:07 ` [Bug target/55276] " mans at mansr dot com
  2012-11-19 15:40 ` dje at gcc dot gnu.org
@ 2012-11-19 16:59 ` dje at gcc dot gnu.org
  2012-11-19 18:17 ` dje at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: dje at gcc dot gnu.org @ 2012-11-19 16:59 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #3 from David Edelsohn <dje at gcc dot gnu.org> 2012-11-19 16:58:42 UTC ---
Author: dje
Date: Mon Nov 19 16:58:31 2012
New Revision: 193628

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193628
Log:
2012-11-19  Mans Rullgard  <mans@mansr.com>

        PR target/55276
        * config/rs6000/rs6000.c (rs6000_stack_info): Always set vrsave_mask
        for TARGET_ALTIVEC_ABI.  Zero vrsave_save_offset if
        !TARGET_ALTIVEC_VRSAVE.
        (rs6000_emit_prologue): For SAVE_INLINE_VLRs, check vrsave_size
        not vrsave_mask.

Modified:
    trunk/gcc/ChangeLog


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

* [Bug target/55276] [4.8 regression] ppc: callee-saved vector registers not preserved
  2012-11-11 21:06 [Bug target/55276] New: [4.8 regression] ppc: callee-saved vector registers not preserved mans at mansr dot com
                   ` (2 preceding siblings ...)
  2012-11-19 16:59 ` dje at gcc dot gnu.org
@ 2012-11-19 18:17 ` dje at gcc dot gnu.org
  2012-11-25 15:55 ` rguenth at gcc dot gnu.org
  2012-12-07  9:44 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: dje at gcc dot gnu.org @ 2012-11-19 18:17 UTC (permalink / raw)
  To: gcc-bugs


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

David Edelsohn <dje at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING

--- Comment #4 from David Edelsohn <dje at gcc dot gnu.org> 2012-11-19 18:16:32 UTC ---
I committed the patch, but this should have a testcase as well.


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

* [Bug target/55276] [4.8 regression] ppc: callee-saved vector registers not preserved
  2012-11-11 21:06 [Bug target/55276] New: [4.8 regression] ppc: callee-saved vector registers not preserved mans at mansr dot com
                   ` (3 preceding siblings ...)
  2012-11-19 18:17 ` dje at gcc dot gnu.org
@ 2012-11-25 15:55 ` rguenth at gcc dot gnu.org
  2012-12-07  9:44 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-11-25 15:55 UTC (permalink / raw)
  To: gcc-bugs


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.8.0


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

* [Bug target/55276] [4.8 regression] ppc: callee-saved vector registers not preserved
  2012-11-11 21:06 [Bug target/55276] New: [4.8 regression] ppc: callee-saved vector registers not preserved mans at mansr dot com
                   ` (4 preceding siblings ...)
  2012-11-25 15:55 ` rguenth at gcc dot gnu.org
@ 2012-12-07  9:44 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-12-07  9:44 UTC (permalink / raw)
  To: gcc-bugs


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

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

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> 2012-12-07 09:43:36 UTC ---
Fixed anyway.


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

end of thread, other threads:[~2012-12-07  9:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-11 21:06 [Bug target/55276] New: [4.8 regression] ppc: callee-saved vector registers not preserved mans at mansr dot com
2012-11-11 21:07 ` [Bug target/55276] " mans at mansr dot com
2012-11-19 15:40 ` dje at gcc dot gnu.org
2012-11-19 16:59 ` dje at gcc dot gnu.org
2012-11-19 18:17 ` dje at gcc dot gnu.org
2012-11-25 15:55 ` rguenth at gcc dot gnu.org
2012-12-07  9:44 ` rguenth 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).