diff options
author | Hu, Lin1 <lin1.hu@intel.com> | 2024-11-04 14:52:56 +0800 |
---|---|---|
committer | Hu, Lin1 <lin1.hu@intel.com> | 2024-11-05 15:52:42 +0800 |
commit | ea46a216d48597b220ae69e79f6513c763f953be (patch) | |
tree | 6ef93b9553fb5eb37c9e3827d7b634636e92b4c1 /gcc/fortran | |
parent | 2fc25a21820001c67258d30f0960ac9cd0f268cf (diff) | |
download | gcc-ea46a216d48597b220ae69e79f6513c763f953be.zip gcc-ea46a216d48597b220ae69e79f6513c763f953be.tar.gz gcc-ea46a216d48597b220ae69e79f6513c763f953be.tar.bz2 |
i386: Handling exception input of __builtin_ia32_prefetch. [PR117416]
op1 should be between 0 and 2. Add an error handler, and op3 should be 0
or 1, raise a warning, when op3 is an invalid value.
gcc/ChangeLog:
PR target/117416
* config/i386/i386-expand.cc (ix86_expand_builtin): Raise warning when
op1 isn't in range of [0, 2] and set op1 as const0_rtx, and raise
warning when op3 isn't in range of [0, 1].
gcc/testsuite/ChangeLog:
PR target/117416
* gcc.target/i386/pr117416-1.c: New test.
* gcc.target/i386/pr117416-2.c: Ditto.
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions