diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2016-07-11 15:13:56 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2016-07-11 08:13:56 -0700 |
commit | 92fa45b59861c0fc83ecece2b46c4bbb441c03c4 (patch) | |
tree | 9ad245d068d8cf1e90dbc6e05ec25b4ff6c60b21 /gcc/config | |
parent | 25b75a48d2a2d0a4d65708da7402f238a10da115 (diff) | |
download | gcc-92fa45b59861c0fc83ecece2b46c4bbb441c03c4.zip gcc-92fa45b59861c0fc83ecece2b46c4bbb441c03c4.tar.gz gcc-92fa45b59861c0fc83ecece2b46c4bbb441c03c4.tar.bz2 |
Don't convert TImode in debug insn
When converting V1TImode register in debug insn, check if it has been
converted to TImode already.
gcc/
PR target/71801
* config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
Don't convert TImode in debug insn.
gcc/testsuite/
PR target/71801
* gcc.target/i386/pr71801.c: New test.
From-SVN: r238211
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/i386/i386.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 9eaf414..d190bef 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -3814,6 +3814,9 @@ timode_scalar_chain::fix_debug_reg_uses (rtx reg) continue; gcc_assert (GET_CODE (val) == VAR_LOCATION); rtx loc = PAT_VAR_LOCATION_LOC (val); + /* It may have been converted to TImode already. */ + if (GET_MODE (loc) == TImode) + continue; gcc_assert (REG_P (loc) && GET_MODE (loc) == V1TImode); /* Convert V1TImode register, which has been updated by a SET |