public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/109504] [12/13/14 Regression] Compilation fails with pragma GCC target sse4.1 and immintrin.h
Date: Wed, 19 Jul 2023 01:36:11 +0000	[thread overview]
Message-ID: <bug-109504-4-qivtgLMnBX@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-109504-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #9 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:9a19fa8b616f83474c35cc5b34a3865073ced829

commit r14-2628-g9a19fa8b616f83474c35cc5b34a3865073ced829
Author: liuhongt <hongtao.liu@intel.com>
Date:   Tue Apr 18 14:53:04 2023 +0800

    Support type _Float16/__bf16 independent of SSE2.

    Enable _Float16 and __bf16 all the time but issue errors when the
    types are used in conversion, unary operation, binary operation,
    parameter passing or value return when TARGET_SSE2 is not available.

    Also undef macros which are used by libgcc/libstdc++ to check the
    backend support of the _Float16/__bf16 types when TARGET_SSE2 is not
    available.

    gcc/ChangeLog:

            PR target/109504
            * config/i386/i386-builtins.cc
            (ix86_register_float16_builtin_type): Remove TARGET_SSE2.
            (ix86_register_bf16_builtin_type): Ditto.
            * config/i386/i386-c.cc (ix86_target_macros): When TARGET_SSE2
            isn't available, undef the macros which are used to check the
            backend support of the _Float16/__bf16 types when building
            libstdc++ and libgcc.
            * config/i386/i386.cc (construct_container): Issue errors for
            HFmode/BFmode when TARGET_SSE2 is not available.
            (function_value_32): Ditto.
            (ix86_scalar_mode_supported_p): Remove TARGET_SSE2 for
HFmode/BFmode.
            (ix86_libgcc_floating_mode_supported_p): Ditto.
            (ix86_emit_support_tinfos): Adjust codes.
            (ix86_invalid_conversion): Return diagnostic message string
            when there's conversion from/to BF/HFmode w/o TARGET_SSE2.
            (ix86_invalid_unary_op): New function.
            (ix86_invalid_binary_op): Ditto.
            (TARGET_INVALID_UNARY_OP): Define.
            (TARGET_INVALID_BINARY_OP): Define.
            * config/i386/immintrin.h [__SSE2__]: Remove for fp16/bf16
            related instrinsics header files.
            * config/i386/i386.h (VALID_SSE2_TYPE_MODE): New macro.

    gcc/testsuite/ChangeLog:

            * gcc.target/i386/pr109504.c: New test.
            * gcc.target/i386/sse2-bfloat16-1.c: Adjust error info.
            * gcc.target/i386/sse2-float16-1.c: Ditto.
            * gcc.target/i386/sse2-float16-4.c: New test.
            * gcc.target/i386/sse2-float16-5.c: New test.
            * g++.target/i386/float16-1.C: Adjust error info.

    libgcc/ChangeLog:

            * config/i386/t-softfp: Add -msse2 to libbid HFtype related
            files.

  parent reply	other threads:[~2023-07-19  1:36 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-13 18:58 [Bug c/109504] New: " vd.kraats at hccnet dot nl
2023-04-13 21:30 ` [Bug target/109504] " pinskia at gcc dot gnu.org
2023-04-14  6:32 ` crazylht at gmail dot com
2023-04-14  7:32 ` crazylht at gmail dot com
2023-04-14  7:38 ` [Bug target/109504] [12/13 Regression] " rguenth at gcc dot gnu.org
2023-04-14  8:01 ` jakub at gcc dot gnu.org
2023-04-14  8:17 ` jakub at gcc dot gnu.org
2023-04-17  6:37 ` crazylht at gmail dot com
2023-04-18  6:39 ` [Bug target/109504] [12/13/14 " crazylht at gmail dot com
2023-05-08 12:26 ` rguenth at gcc dot gnu.org
2023-07-19  1:36 ` cvs-commit at gcc dot gnu.org [this message]
2023-07-19  6:48 ` crazylht at gmail dot com
2023-11-30 10:52 ` liuhongt at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-109504-4-qivtgLMnBX@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).