x86: Skip EXT_REX_SSE_REG_P for vzeroupper optimization
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 20 Jun 2020 23:02:42 +0000 (16:02 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 22 Jun 2020 12:18:47 +0000 (05:18 -0700)
commit9302421e71e85b4d3766a534ed9e1c4ae1e7a6ca
tree864f45ebe8c5c38ee1b6ad2e23f89e10c03cdb19
parentd9aed5f1ccffc019ddf980e349caa3d092755cb4
x86: Skip EXT_REX_SSE_REG_P for vzeroupper optimization

Skip EXT_REX_SSE_REG_P for vzeroupper optimization since upper 16 vector
registers don't trigger SSE <-> AVX transition penalty.

gcc/

PR target/95791
* config/i386/i386.c (ix86_dirflag_mode_needed): Skip
EXT_REX_SSE_REG_P.

gcc/testsuite/

PR target/95791
* gcc.target/i386/pr95791.c: New test.
gcc/config/i386/i386.c
gcc/testsuite/gcc.target/i386/pr95791.c [new file with mode: 0644]