[pr82089] Don't sign-extend SFV 1 in BImode
authorAndrew Stubbs <ams@codesourcery.com>
Thu, 27 Sep 2018 11:15:48 +0000 (11:15 +0000)
committerAndrew Stubbs <ams@gcc.gnu.org>
Thu, 27 Sep 2018 11:15:48 +0000 (11:15 +0000)
commit19ef5a8fd5710a197ddeaafc2c69ff77217fece5
tree7255ef04d5405b07935f7164c33e01a7d2af6cba
parent90e79377a542e63b5cded9c72064b11e7833cce4
[pr82089] Don't sign-extend SFV 1 in BImode

This is an update of the patch posted to PR82089 long ago.  We ran into the
same bug on GCN, so we need this fixed as part of this series.

2018-09-27  Andrew Stubbs  <ams@codesourcery.com>
            Tom de Vries  <tom@codesourcery.com>

PR 82089

gcc/
* expmed.c (emit_cstore): Fix handling of result_mode == BImode and
STORE_FLAG_VALUE == 1.

Co-Authored-By: Tom de Vries <tom@codesourcery.com>
From-SVN: r264666
gcc/ChangeLog
gcc/expmed.c