ewlu / gcc-precommit-ci

2 stars 0 forks source link

Patch Status 39316-v112_Match_Support_form_3_for_scalar_signed_integer_SATTRUNC-2 #2338

Open github-actions[bot] opened 2 hours ago

github-actions[bot] commented 2 hours ago

Precommit CI Run information

Logs can be found in the associated Github Actions run: https://github.com/ewlu/gcc-precommit-ci/actions/runs/11257595307

Patch information

Applied patches: 1 -> 2 Associated series: https://patchwork.sourceware.org/project/gcc/list/?series=39316 Last patch applied: https://patchwork.sourceware.org/project/gcc/patch/20241009143837.1044138-2-pan2.li@intel.com/ Patch id: 98598

Build Targets

Some targets are built as multilibs. If a build target ends with multilib, please refer to the table below to see all the targets within that multilib. Target name -march string
newlib-rv64gcv-lp64d-multilib rv64gcv-lp64d, rv32gc-ilp32d, rv64gc-lp64d, rv32imc_zba_zbb_zbc_zbs-ilp32
linux-rv64gcv-lp64d-multilib rv32gcv-ilp32d, rv64gcv-lp64d
linux-rv64gc_zba_zbb_zbc_zbs-lp64d-multilib rv32gc_zba_zbb_zbc_zbs-ilp32d, rv64gc_zba_zbb_zbc_zbs-lp64d

Target Information

Target Shorthand -march string
Bitmanip gc_zba_zbb_zbc_zbs

Notes

Testsuite results use a more lenient allowlist to reduce error reporting with flakey tests. Please take a look at the current allowlist. Results come from a sum file comparator. Each patch is applied to a well known, non-broken baseline taken from our gcc postcommit framework (here) which runs the full gcc testsuite every 6 hours. If you have any questions or encounter any issues which may seem like false-positives, please contact us at patchworks-ci@rivosinc.com

github-actions[bot] commented 2 hours ago

Lint Status

Lint passed

github-actions[bot] commented 2 hours ago

Apply Status

Target Status
Baseline hash: https://github.com/gcc-mirror/gcc/commit/821d56100e1110ab6a166f50819522254eb30923 Failed
Tip of tree hash: https://github.com/gcc-mirror/gcc/commit/4f97411c0d45dc3d04b5d16384fee111889a7c41 Failed

Command

> git am ../patches/*.patch --whitespace=fix -q --3way --empty=drop

Output

error: sha1 information is lacking or useless (gcc/match.pd).
error: could not build fake ancestor
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config advice.mergeConflict false"
Patch failed at 0001 Match: Support form 3 for scalar signed integer SAT_TRUNC
---
 gcc/match.pd | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gcc/match.pd b/gcc/match.pd
index 70fdd10926f..5e20651c8ce 100644
--- a/gcc/match.pd
+++ b/gcc/match.pd
@@ -3478,6 +3478,8 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT)
    wide_int limit_0 = wi::mask (otype_prec, false, itype_prec); // Aka 255
    wide_int limit_1 = wi::uhwi ((HOST_WIDE_INT_1U << otype_prec) - 3,
                itype_prec); // Aka 253
+   wide_int limit_2 = wi::uhwi ((HOST_WIDE_INT_1U << otype_prec) - 2,
+               itype_prec); // Aka 254
    wide_int otype_max = wi::mask (otype_prec - 1, false, otype_prec);
    wide_int itype_max = wi::mask (otype_prec - 1, false, itype_prec);
    wide_int int_cst_1 = wi::to_wide (@1);
@@ -3485,6 +3487,7 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT)
    wide_int int_cst_3 = wi::to_wide (@3);
   }
   (if (((wi::eq_p (int_cst_1, offset) && wi::eq_p (int_cst_2, limit_0))
+    || (wi::eq_p (int_cst_1, itype_max) && wi::eq_p (int_cst_2, limit_2))
     || (wi::eq_p (int_cst_1, itype_max) && wi::eq_p (int_cst_2, limit_1)))
        && wi::eq_p (int_cst_3, otype_max))))))

Additional information