https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96350
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by hongtao Liu <liuho...@gcc.gnu.org>: https://gcc.gnu.org/g:9a5381f749ee2cef51af67895de182113e45f642 commit r11-2716-g9a5381f749ee2cef51af67895de182113e45f642 Author: liuhongt <hongtao....@intel.com> Date: Tue Aug 4 10:00:13 2020 +0800 Force ENDBR immediate into memory. gcc/ PR target/96350 * config/i386/i386.c (ix86_legitimate_constant_p): Return false for ENDBR immediate. (ix86_legitimate_address_p): Ditto. * config/i386/predicates.md (x86_64_immediate_operand): Exclude ENDBR immediate. (x86_64_zext_immediate_operand): Ditto. (x86_64_dwzext_immediate_operand): Ditto. (ix86_endbr_immediate_operand): New predicate. gcc/testsuite * gcc.target/i386/endbr_immediate.c: New test.