Sorry, the previous patch had some issues with the test case. Please refer to the updated version, which resolves the problem.
________________________________ From: Yuao Ma <c...@outlook.com> Sent: Tuesday, May 20, 2025 23:54 To: gcc-patches@gcc.gnu.org <gcc-patches@gcc.gnu.org>; GCC Fortran <fort...@gcc.gnu.org>; tbur...@baylibre.com <tbur...@baylibre.com> Subject: [PATCH] fortran: add constant input support for trig functions with half-revolutions Hi all, This patch introduces constant input support for trigonometric functions, including those involving half-revolutions. Both valid and invalid inputs have been thoroughly tested, as have mpfr versions greater than or equal to 4.2 and less than 4.2. Inspired by Steve's previous work, this patch also fixes subtle bugs revealed by newly added test cases. If this patch is merged, I plan to work on middle-end optimization support for previously added GCC built-ins and libgfortran intrinsics. Best regards, Yuao
0001-fortran-add-constant-input-support-for-trig-function.patch
Description: 0001-fortran-add-constant-input-support-for-trig-function.patch