Bug 115892 - [15 regression] gcc.target/aarch64/sve/acle/general/cpy_1.c test failure
Summary: [15 regression] gcc.target/aarch64/sve/acle/general/cpy_1.c test failure
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: testsuite (show other bugs)
Version: 15.0
: P3 normal
Target Milestone: 15.0
Assignee: Surya Kumari Jangala
URL:
Keywords: testsuite-fail
Depends on:
Blocks:
 
Reported: 2024-07-12 09:59 UTC by Surya Kumari Jangala
Modified: 2024-07-15 06:47 UTC (History)
1 user (show)

See Also:
Host:
Target: aarch64
Build:
Known to work:
Known to fail:
Last reconfirmed: 2024-07-12 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Surya Kumari Jangala 2024-07-12 09:59:10 UTC
The test fails with r15-1619-g3b9b8d6cfdf593. 

body: .*\tadd   (x[0-9]+), x0, #?1
\tmov   (p[0-7])\.b, p15\.b
\tmov   z0\.d, \2/m, \1
.*\tret

against:        addvl   sp, sp, #-1
        str     p15, [sp]
        mov     p3.b, p15.b
        add     x0, x0, 1
        mov     z0.d, p3/m, x0
        ldr     p15, [sp]
        addvl   sp, sp, #1
        ret

FAIL: gcc.target/aarch64/sve/acle/general/cpy_1.c -march=armv8.2-a+sve -moverride=tune=none  check-function-bodies dup_x0_m

As per the discussion at https://gcc.gnu.org/pipermail/gcc/2023-November/242930.html and https://gcc.gnu.org/pipermail/gcc/2023-November/242931.html , this is an acceptable result and the testcase can be changed.
Comment 1 GCC Commits 2024-07-15 04:38:21 UTC
The master branch has been updated by Surya Kumari Jangala <jskumari@gcc.gnu.org>:

https://gcc.gnu.org/g:8b1492012e5a11e9400e30ee4ae9195c08a2a81e

commit r15-2034-g8b1492012e5a11e9400e30ee4ae9195c08a2a81e
Author: Surya Kumari Jangala <jskumari@linux.ibm.com>
Date:   Thu Jul 11 11:02:17 2024 -0500

    aarch64: Fix the expected output of the test cpy_1.c [PR115892]
    
    The fix at r15-1619-g3b9b8d6cfdf593 results in a rearrangement of
    instructions generated for cpy_1.c. This patch fixes the expected output.
    
    2024-07-12  Surya Kumari Jangala  <jskumari@linux.ibm.com>
    
    gcc/testsuite:
            PR testsuite/115892
            * gcc.target/aarch64/sve/acle/general/cpy_1.c: Update expected
            output.
Comment 2 Surya Kumari Jangala 2024-07-15 06:47:10 UTC
Fixed in r15-2034-g8b1492012e5a11