[Bug math/34306] New: FAIL: math/test-narrowing-trap

"danglin at gcc dot gnu.org via Glibc-bugs" <[email protected]> Sun, 21 Jun 2026 15:41:51 +0000
Newsgroups gmane.comp.lib.glibc.bugs
Message-ID <[email protected]/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=34306

            Bug ID: 34306
           Summary: FAIL: math/test-narrowing-trap
           Product: glibc
           Version: 2.44
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
          Assignee: unassigned at sourceware dot org
          Reporter: danglin at gcc dot gnu.org
  Target Milestone: ---
              Host: hppa-unknown-linux-gnu
            Target: hppa-unknown-linux-gnu
             Build: hppa-unknown-linux-gnu

This commit introduced the math/test-narrowing-trap test:
commit 52746049154be156de6d500c7cc5bfdafc074cbe
Author: Xi Ruoyao <[email protected]>
Date:   Tue Mar 24 15:22:59 2026 +0800

    LoongArch: fix missing trap for enabled exceptions on narrowing operation

The test fails on hppa:
../scripts/evaluate-test.sh math/test-narrowing-trap $? false false >
/home/dave/gnu/glibc/objdir/math/test-narrowing-trap.test-result
make[2]: Leaving directory '/home/dave/gnu/glibc/glibc/math'
FAIL: math/test-narrowing-trap
original exit status 1
error: test-narrowing-trap.c:49: not true: WIFSIGNALED (status)
test-narrowing-trap.c:50: numeric comparison failure
   left: 0 (0x0); from: WTERMSIG (status)
  right: 8 (0x8); from: SIGFPE
error: 2 test failures
make[1]: Leaving directory '/home/dave/gnu/glibc/glibc'

It seems we need a fix similar to the one for LoongArch.

-- 
You are receiving this mail because:
You are on the CC list for the bug.