]> git.ipfire.org Git - thirdparty/gcc.git/commit
vect: Fix integer overflow calculating mask
authorAndrew Stubbs <ams@baylibre.com>
Thu, 22 Feb 2024 15:41:00 +0000 (15:41 +0000)
committerAndrew Stubbs <ams@baylibre.com>
Mon, 4 Mar 2024 15:39:02 +0000 (15:39 +0000)
commit77eb86be8841989651b3150a020dd1a95910cc00
tree224f200a1925178ff144b02b4119a17e24fc76ab
parent71244316cf714725930c2de61c79d635238595bf
vect: Fix integer overflow calculating mask

The masks and bitvectors were broken when nunits==32 on hosts where int is
32-bit.

gcc/ChangeLog:

* dojump.cc (do_compare_and_jump): Use full-width integers for shifts.
* expr.cc (store_constructor): Likewise.
(do_store_flag): Likewise.
gcc/dojump.cc
gcc/expr.cc