testsuite: Fix sve/mul_2.c failures
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 8 Apr 2021 14:00:03 +0000 (15:00 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Thu, 8 Apr 2021 14:00:03 +0000 (15:00 +0100)
commitd3f78917e1310d7d00e4f955c8e5d30a777f7d35
tree621e066c4d82180b4d1fd689e7f3f3381780f312
parentacbbb82ea3e2ae145e59ffca6f1ec0699b5f7383
testsuite: Fix sve/mul_2.c failures

Some sve/mul_2.c tests were failing because we'd (reasonably)
decided to use shifts and adds instead of MULs for some simple
negative constants.  We'd already needed to avoid that when
picking positive constants, so this patch does the same thing
for the negative ones.

gcc/testsuite/
* gcc.target/aarch64/sve/mul_2.c: Adjust negative constants to avoid
conversion to shifts and adds.
gcc/testsuite/gcc.target/aarch64/sve/mul_2.c