]> git.ipfire.org Git - thirdparty/gcc.git/commit
[37/77] Use scalar_int_mode when emitting cstores
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Aug 2017 11:14:32 +0000 (11:14 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Aug 2017 11:14:32 +0000 (11:14 +0000)
commit7cae74a7d8157c5297a9fb8ae45150b4244be004
treea44951b09715e6d11e52b297f2d81e762123ae4f
parent601e68ad56da5896d1692160143e7bf977ffd87f
[37/77] Use scalar_int_mode when emitting cstores

cstore patterns always have a scalar integer result, which has the
value 0 for "false" and STORE_FLAG_VALUE for "true".  This patch
makes that explicit using scalar_int_mode.

2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
    Alan Hayward  <alan.hayward@arm.com>
    David Sherwood  <david.sherwood@arm.com>

gcc/
* target.def (cstore_mode): Return a scalar_int_mode.
* doc/tm.texi: Regenerate.
* config/sparc/sparc.c (sparc_cstore_mode): Return a scalar_int_mode.
* targhooks.h (default_cstore_mode): Likewise.
* targhooks.c (default_cstore_mode): Likewise, using a forced
conversion.
* expmed.c (emit_cstore): Expect the target of the cstore to be
a scalar_int_mode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@251489 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/sparc/sparc.c
gcc/doc/tm.texi
gcc/expmed.c
gcc/target.def
gcc/targhooks.c
gcc/targhooks.h