public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/109073] New: __builtin_vsx_lxvp() doesn't allow a const __vector_pair * operand in GCC 11 & 10
@ 2023-03-08 22:32 bergner at gcc dot gnu.org
  2023-03-08 22:34 ` [Bug target/109073] " bergner at gcc dot gnu.org
  2023-05-29 10:08 ` jakub at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: bergner at gcc dot gnu.org @ 2023-03-08 22:32 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109073
           Summary: __builtin_vsx_lxvp() doesn't allow a const
                    __vector_pair * operand in GCC 11 & 10
           Product: gcc
           Version: 11.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bergner at gcc dot gnu.org
  Target Milestone: ---

On GCC 11 and GCC 10, we error on the following test case which GCC 12 and
trunk accept with no errors:

bergner@ltcden2$ cat t.cc 
void
foo (void *dst, const __vector_pair *src)
{
  __vector_pair pair = __builtin_vsx_lxvp(0L, src);
  __builtin_vsx_disassemble_pair(dst, &pair);
}

bergner@ltcden2$ g++ -S -O2 -mcpu=power10 t.cc 
t.cc: In function ‘void foo(void*, const __vector_pair*)’:
t.cc:4:47: error: invalid conversion from ‘const __vector_pair*’ to
‘__vector_pair*’ [-fpermissive]
    4 |   __vector_pair pair = __builtin_vsx_lxvp(0L, src);
      |                                               ^~~
      |                                               |
      |                                               const __vector_pair*
<built-in>: note:   initializing argument 2 of ‘__vector_pair
__builtin_vsx_lxvp(sizetype, __vector_pair*)’

This was "fixed" in GCC 12 with Bill's rs6000 built-in rewrite, which we don't
want to backport.  I have a smaller fix which can be backported that I am
testing. The same problem affects the __builtin_vsx_stxvp() and
__builtin_vsx_disassemble_pair() and __builtin_mma_disassemble_acc() builtins.

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

* [Bug target/109073] __builtin_vsx_lxvp() doesn't allow a const __vector_pair * operand in GCC 11 & 10
  2023-03-08 22:32 [Bug target/109073] New: __builtin_vsx_lxvp() doesn't allow a const __vector_pair * operand in GCC 11 & 10 bergner at gcc dot gnu.org
@ 2023-03-08 22:34 ` bergner at gcc dot gnu.org
  2023-05-29 10:08 ` jakub at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: bergner at gcc dot gnu.org @ 2023-03-08 22:34 UTC (permalink / raw)
  To: gcc-bugs

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

Peter Bergner <bergner at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |chip.kerchner at ibm dot com,
                   |                            |segher at gcc dot gnu.org
   Last reconfirmed|                            |2023-03-08
             Status|UNCONFIRMED                 |ASSIGNED
           Keywords|                            |rejects-valid
   Target Milestone|---                         |11.4
      Known to fail|                            |10.0, 11.0
           Assignee|unassigned at gcc dot gnu.org      |bergner at gcc dot gnu.org
             Target|                            |powerpc*-*-*
      Known to work|                            |12.0, 13.0
     Ever confirmed|0                           |1

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

* [Bug target/109073] __builtin_vsx_lxvp() doesn't allow a const __vector_pair * operand in GCC 11 & 10
  2023-03-08 22:32 [Bug target/109073] New: __builtin_vsx_lxvp() doesn't allow a const __vector_pair * operand in GCC 11 & 10 bergner at gcc dot gnu.org
  2023-03-08 22:34 ` [Bug target/109073] " bergner at gcc dot gnu.org
@ 2023-05-29 10:08 ` jakub at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-05-29 10:08 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|11.4                        |11.5

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 11.4 is being released, retargeting bugs to GCC 11.5.

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

end of thread, other threads:[~2023-05-29 10:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-08 22:32 [Bug target/109073] New: __builtin_vsx_lxvp() doesn't allow a const __vector_pair * operand in GCC 11 & 10 bergner at gcc dot gnu.org
2023-03-08 22:34 ` [Bug target/109073] " bergner at gcc dot gnu.org
2023-05-29 10:08 ` 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).