Convert V1TImode register to TImode in debug insn
authorH.J. Lu <hongjiu.lu@intel.com>
Tue, 21 Jun 2016 14:24:31 +0000 (14:24 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Tue, 21 Jun 2016 14:24:31 +0000 (07:24 -0700)
commit9d30e86f965cf7a7ca2405e9e35683b6dc3595e3
treecfaf0d6bd76d1a13e442069ddf9d5a8c1cb13590
parent448a7c69f27745f83a4adcbb341b9d6ebc1094fd
Convert V1TImode register to TImode in debug insn

TImode register referenced in debug insn can be converted to V1TImode
by scalar to vector optimization.  After converting a TImode register
to V1TImode, we need to check all debug insns on its use chain to
convert the V1TImode register to SUBREG TImode.

gcc/

2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
    Ilya Enkovich  <ilya.enkovich@intel.com>

PR target/71549
* config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
New member function to convert V1TImode register to SUBREG
TImode in debug insn.
(timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
after changing register mode to V1TImode.

gcc/testsuite/

2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>

PR target/71549
* gcc.target/i386/pr71549.c: New test.

Co-Authored-By: Ilya Enkovich <ilya.enkovich@intel.com>
From-SVN: r237647
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr71549.c [new file with mode: 0644]