]> git.ipfire.org Git - thirdparty/gcc.git/commit
x86: Define __APX_INLINE_ASM_USE_GPR32__
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 9 Apr 2024 01:57:49 +0000 (18:57 -0700)
committerH.J. Lu <(no_default)>
Tue, 9 Apr 2024 02:42:36 +0000 (19:42 -0700)
commit18e94e04dae724c61cbc13ace85fa68f2deda900
tree2c1138f6f5aa74245a96fbd6e01e6c7b9a1e605b
parent9c97de682303b81c8886ac131fcfb3b122f2f1a6
x86: Define __APX_INLINE_ASM_USE_GPR32__

Define __APX_INLINE_ASM_USE_GPR32__ for -mapx-inline-asm-use-gpr32.
When __APX_INLINE_ASM_USE_GPR32__ is defined, inline asm statements
should contain only instructions compatible with r16-r31.

gcc/

PR target/114587
* config/i386/i386-c.cc (ix86_target_macros_internal): Define
__APX_INLINE_ASM_USE_GPR32__ for -mapx-inline-asm-use-gpr32.

gcc/testsuite/

PR target/114587
* gcc.target/i386/apx-3.c: Likewise.
gcc/config/i386/i386-c.cc
gcc/testsuite/gcc.target/i386/apx-3.c [new file with mode: 0644]