public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/109117] New: "__builtin_ia32_vaesdec_v16qi" compiled only with option -mvaes report ICE.
@ 2023-03-14  2:24 lin1.hu at intel dot com
  2023-03-14  2:25 ` [Bug target/109117] " lin1.hu at intel dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: lin1.hu at intel dot com @ 2023-03-14  2:24 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109117
           Summary: "__builtin_ia32_vaesdec_v16qi" compiled only with
                    option -mvaes report ICE.
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: lin1.hu at intel dot com
  Target Milestone: ---

When the compiler compiles "__builtin_ia32_vaesdec_v16qi" with option
-mvaes,-no-avx512vl, it reports ICE.

The detail can refer to https://godbolt.org/z/fEGavbGWz.

Test-case:

typedef char __v16qi __attribute__ ((__vector_size__(16)));
typedef long long __m128i __attribute__((__vector_size__(16),
__aligned__(16)));
volatile __v16qi x, y;
volatile __m128i res;

void
foo (void)
{
    res = (__m128i) __builtin_ia32_vaesdec_v16qi (x, y);
}

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

* [Bug target/109117] "__builtin_ia32_vaesdec_v16qi" compiled only with option -mvaes report ICE.
  2023-03-14  2:24 [Bug target/109117] New: "__builtin_ia32_vaesdec_v16qi" compiled only with option -mvaes report ICE lin1.hu at intel dot com
@ 2023-03-14  2:25 ` lin1.hu at intel dot com
  2023-03-14  3:21 ` lin1.hu at intel dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: lin1.hu at intel dot com @ 2023-03-14  2:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from lin1.hu at intel dot com ---
Created attachment 54657
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54657&action=edit
Untested fix.

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

* [Bug target/109117] "__builtin_ia32_vaesdec_v16qi" compiled only with option -mvaes report ICE.
  2023-03-14  2:24 [Bug target/109117] New: "__builtin_ia32_vaesdec_v16qi" compiled only with option -mvaes report ICE lin1.hu at intel dot com
  2023-03-14  2:25 ` [Bug target/109117] " lin1.hu at intel dot com
@ 2023-03-14  3:21 ` lin1.hu at intel dot com
  2023-03-14  3:22 ` lin1.hu at intel dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: lin1.hu at intel dot com @ 2023-03-14  3:21 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from lin1.hu at intel dot com ---
Created attachment 54659
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54659&action=edit
No need AVX512VL for 256bit, so I modify the original patch.

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

* [Bug target/109117] "__builtin_ia32_vaesdec_v16qi" compiled only with option -mvaes report ICE.
  2023-03-14  2:24 [Bug target/109117] New: "__builtin_ia32_vaesdec_v16qi" compiled only with option -mvaes report ICE lin1.hu at intel dot com
  2023-03-14  2:25 ` [Bug target/109117] " lin1.hu at intel dot com
  2023-03-14  3:21 ` lin1.hu at intel dot com
@ 2023-03-14  3:22 ` lin1.hu at intel dot com
  2023-03-14  9:20 ` lin1.hu at intel dot com
  2023-03-15  3:24 ` cvs-commit at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: lin1.hu at intel dot com @ 2023-03-14  3:22 UTC (permalink / raw)
  To: gcc-bugs

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

lin1.hu at intel dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #54659|No need AVX512VL for        |0001-i386-Add-missing-OPTIO
        description|256bit, so I modify the     |N_MASK_ISA_AVX512VL-in-i386
                   |original patch.             |-bu.patch

--- Comment #3 from lin1.hu at intel dot com ---
Comment on attachment 54659
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54659
0001-i386-Add-missing-OPTION_MASK_ISA_AVX512VL-in-i386-bu.patch

No need AVX512VL for 256bit, so I modify the original patch.

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

* [Bug target/109117] "__builtin_ia32_vaesdec_v16qi" compiled only with option -mvaes report ICE.
  2023-03-14  2:24 [Bug target/109117] New: "__builtin_ia32_vaesdec_v16qi" compiled only with option -mvaes report ICE lin1.hu at intel dot com
                   ` (2 preceding siblings ...)
  2023-03-14  3:22 ` lin1.hu at intel dot com
@ 2023-03-14  9:20 ` lin1.hu at intel dot com
  2023-03-15  3:24 ` cvs-commit at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: lin1.hu at intel dot com @ 2023-03-14  9:20 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from lin1.hu at intel dot com ---
(In reply to lin1.hu from comment #2)
> Created attachment 54659 [details]
> 0001-i386-Add-missing-OPTION_MASK_ISA_AVX512VL-in-i386-bu.patch

Regtested on x86_64-pc-linux-gnu.

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

* [Bug target/109117] "__builtin_ia32_vaesdec_v16qi" compiled only with option -mvaes report ICE.
  2023-03-14  2:24 [Bug target/109117] New: "__builtin_ia32_vaesdec_v16qi" compiled only with option -mvaes report ICE lin1.hu at intel dot com
                   ` (3 preceding siblings ...)
  2023-03-14  9:20 ` lin1.hu at intel dot com
@ 2023-03-15  3:24 ` cvs-commit at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-03-15  3:24 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by hongtao Liu <liuhongt@gcc.gnu.org>:

https://gcc.gnu.org/g:a9ae16db8cbb2c0ec8e8384ac38ce618f9af1e3a

commit r13-6680-ga9ae16db8cbb2c0ec8e8384ac38ce618f9af1e3a
Author: Hu, Lin1 <lin1.hu@intel.com>
Date:   Mon Mar 13 15:50:11 2023 +0800

    i386:Add missing OPTION_MASK_ISA_AVX512VL in i386-builtin.def for VAES
builtins

    gcc/ChangeLog:

            PR target/109117
            * config/i386/i386-builtin.def (__builtin_ia32_vaesdec_v16qi,
            __builtin_ia32_vaesdeclast_v16qi,__builtin_ia32_vaesenc_v16qi,
            __builtin_ia32_vaesenclast_v16qi): Require
OPTION_MASK_ISA_AVX512VL.

    gcc/testsuite/ChangeLog:

            PR target/109117
            * gcc.target/i386/pr109117-1.c: New test.

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

end of thread, other threads:[~2023-03-15  3:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-14  2:24 [Bug target/109117] New: "__builtin_ia32_vaesdec_v16qi" compiled only with option -mvaes report ICE lin1.hu at intel dot com
2023-03-14  2:25 ` [Bug target/109117] " lin1.hu at intel dot com
2023-03-14  3:21 ` lin1.hu at intel dot com
2023-03-14  3:22 ` lin1.hu at intel dot com
2023-03-14  9:20 ` lin1.hu at intel dot com
2023-03-15  3:24 ` cvs-commit 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).