]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[RISC-V] Fix more fallout from combine.c changes
authorJeff Law <jlaw@ventanamicro.com>
Wed, 9 Apr 2025 14:33:17 +0000 (08:33 -0600)
committerJeff Law <jlaw@ventanamicro.com>
Wed, 9 Apr 2025 14:34:00 +0000 (08:34 -0600)
Trivial fallout from the recent combine work.  We end up with a srai rather
than an xor in some of the saturation sequences.  Both variants look equally
performant, so I'm just adjusting the expected test output.

gcc/testsuite
* gcc.target/riscv/sat/sat_s_sub-1-i64.c: Update expected output.
* gcc.target/riscv/sat/sat_s_sub-2-i64.c: Likewise.
* gcc.target/riscv/sat/sat_s_sub-3-i64.c: Likewise.
* gcc.target/riscv/sat/sat_s_sub-4-i64.c: Likewise.

gcc/testsuite/gcc.target/riscv/sat/sat_s_sub-1-i64.c
gcc/testsuite/gcc.target/riscv/sat/sat_s_sub-2-i64.c
gcc/testsuite/gcc.target/riscv/sat/sat_s_sub-3-i64.c
gcc/testsuite/gcc.target/riscv/sat/sat_s_sub-4-i64.c

index c0d643d710f4f74bb64289aeca3b9b4ed92690c9..929de162d5749771afc82a3017e117e52db3e8ee 100644 (file)
@@ -15,7 +15,7 @@
 ** li\s+[atx][0-9]+,\s*-1
 ** srli\s+[atx][0-9]+,\s*[atx][0-9]+,\s*1
 ** xor\s+[atx][0-9]+,\s*[atx][0-9]+,\s*[atx][0-9]+
-** neg\s+[atx][0-9]+,\s*[atx][0-9]+
+** srai\s+[atx][0-9]+,\s*[atx][0-9]+,\s*63
 ** and\s+[atx][0-9]+,\s*[atx][0-9]+,\s*[atx][0-9]+
 ** addi\s+[atx][0-9]+,\s*[atx][0-9]+,\s*-1
 ** and\s+[atx][0-9]+,\s*[atx][0-9]+,\s*[atx][0-9]+
index 470e6b7391bec51a2cfa3cd592bb310780e4681b..a5401983e7d99867bd1e8228ac7eb70956e17f39 100644 (file)
@@ -15,7 +15,7 @@
 ** li\s+[atx][0-9]+,\s*-1
 ** srli\s+[atx][0-9]+,\s*[atx][0-9]+,\s*1
 ** xor\s+[atx][0-9]+,\s*[atx][0-9]+,\s*[atx][0-9]+
-** neg\s+[atx][0-9]+,\s*[atx][0-9]+
+** srai\s+[atx][0-9]+,\s*[atx][0-9]+,\s*63
 ** and\s+[atx][0-9]+,\s*[atx][0-9]+,\s*[atx][0-9]+
 ** addi\s+[atx][0-9]+,\s*[atx][0-9]+,\s*-1
 ** and\s+[atx][0-9]+,\s*[atx][0-9]+,\s*[atx][0-9]+
index bb947751fdad046b5e7b8ffc1e174dd4e9bf2b32..e3fe6c78ca6a636845787a79dfd03749b279ef00 100644 (file)
@@ -15,7 +15,7 @@
 ** li\s+[atx][0-9]+,\s*-1
 ** srli\s+[atx][0-9]+,\s*[atx][0-9]+,\s*1
 ** xor\s+[atx][0-9]+,\s*[atx][0-9]+,\s*[atx][0-9]+
-** neg\s+[atx][0-9]+,\s*[atx][0-9]+
+** srai\s+[atx][0-9]+,\s*[atx][0-9]+,\s*63
 ** and\s+[atx][0-9]+,\s*[atx][0-9]+,\s*[atx][0-9]+
 ** addi\s+[atx][0-9]+,\s*[atx][0-9]+,\s*-1
 ** and\s+[atx][0-9]+,\s*[atx][0-9]+,\s*[atx][0-9]+
index cc598ebc0d23d38e54694bc054c6defbda4e703f..f42ffea5f9f691f2834c0a61b7ea451e257eab7f 100644 (file)
@@ -15,7 +15,7 @@
 ** li\s+[atx][0-9]+,\s*-1
 ** srli\s+[atx][0-9]+,\s*[atx][0-9]+,\s*1
 ** xor\s+[atx][0-9]+,\s*[atx][0-9]+,\s*[atx][0-9]+
-** neg\s+[atx][0-9]+,\s*[atx][0-9]+
+** srai\s+[atx][0-9]+,\s*[atx][0-9]+,\s*63
 ** and\s+[atx][0-9]+,\s*[atx][0-9]+,\s*[atx][0-9]+
 ** addi\s+[atx][0-9]+,\s*[atx][0-9]+,\s*-1
 ** and\s+[atx][0-9]+,\s*[atx][0-9]+,\s*[atx][0-9]+