https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110371
--- Comment #7 from Hongtao.liu <crazylht at gmail dot com> --- (In reply to Hongtao.liu from comment #6) > (In reply to Thiago Jung Bauermann from comment #0) > > Created attachment 55387 [details] > > Output of running gfortran with -freport-bug > > > > In today's trunk (tested commit 33ebb0dff9bb "configure: Implement > > --enable-host-bind-now") I get these new failures on aarch64-linux-gnu: > > > > Running gcc:gcc.target/aarch64/sve/aarch64-sve.exp ... > > FAIL: gcc.target/aarch64/sve/pack_fcvt_signed_1.c scan-assembler-times > > \\tfcvtzs\\tz[0-9]+\\.s, p[0-7]/m, z[0-9]+\\.d\\n 2 > > FAIL: gcc.target/aarch64/sve/pack_fcvt_signed_1.c scan-assembler-times > > \\tuzp1\\tz[0-9]+\\.s, z[0-9]+\\.s, z[0-9]+\\.s\\n 1 > > FAIL: gcc.target/aarch64/sve/pack_fcvt_unsigned_1.c scan-assembler-times > > \\tfcvtzu\\tz[0-9]+\\.s, p[0-7]/m, z[0-9]+\\.d\\n 2 > > FAIL: gcc.target/aarch64/sve/pack_fcvt_unsigned_1.c scan-assembler-times > > \\tuzp1\\tz[0-9]+\\.s, z[0-9]+\\.s, z[0-9]+\\.s\\n 1 > > FAIL: gcc.target/aarch64/sve/unpack_fcvt_signed_1.c scan-assembler-times > > \\tscvtf\\tz[0-9]+\\.d, p[0-7]/m, z[0-9]+\\.s\\n 2 > > FAIL: gcc.target/aarch64/sve/unpack_fcvt_signed_1.c scan-assembler-times > > \\tzip1\\tz[0-9]+\\.s, z[0-9]+\\.s, z[0-9]+\\.s\\n 1 > > FAIL: gcc.target/aarch64/sve/unpack_fcvt_signed_1.c scan-assembler-times > > \\tzip2\\tz[0-9]+\\.s, z[0-9]+\\.s, z[0-9]+\\.s\\n 1 > > FAIL: gcc.target/aarch64/sve/unpack_fcvt_unsigned_1.c scan-assembler-times > > \\tucvtf\\tz[0-9]+\\.d, p[0-7]/m, z[0-9]+\\.s\\n 2 > > FAIL: gcc.target/aarch64/sve/unpack_fcvt_unsigned_1.c scan-assembler-times > > \\tzip1\\tz[0-9]+\\.s, z[0-9]+\\.s, z[0-9]+\\.s\\n 1 > > FAIL: gcc.target/aarch64/sve/unpack_fcvt_unsigned_1.c scan-assembler-times > > \\tzip2\\tz[0-9]+\\.s, z[0-9]+\\.s, z[0-9]+\\.s\\n 1 > > === gfortran tests === > > > > For this scan-assembler failures, It looks like gcc now generates better > code, is it ok to adjust testcase to match new assembly? > > current: > ld1d z31.d, p7/z, [x1, x3, lsl 3] > fadd z31.d, p7/m, z31.d, z30.d > fcvtzs z31.d, p6/m, z31.d > st1w z31.d, p7, [x0, x3, lsl 2] > add x3, x3, x4 > whilelo p7.d, w3, w2 > b.any .L3 > > vs > original > punpklo p2.h, p0.b > punpkhi p1.h, p0.b > ld1d z0.d, p2/z, [x1, x3, lsl 3] > ld1d z1.d, p1/z, [x5, x3, lsl 3] > fadd z0.d, p2/m, z0.d, z2.d > fadd z1.d, p1/m, z1.d, z2.d > fcvtzs z0.s, p3/m, z0.d > fcvtzs z1.s, p3/m, z1.d > uzp1 z0.s, z0.s, z1.s > st1w z0.s, p0, [x0, x3, lsl 2] > add x3, x3, x4 > whilelo p0.s, w3, w2 > b.any .L3 > > > https://godbolt.org/z/b4cW7WKev Or only adjust testcase for FLOAT_EXPR, not for FIX_TRUNC_EXPR to avoid float- integer overflow.