On 9/10/24 5:03 PM, pan2...@intel.com wrote:
From: Pan Li <pan2...@intel.com>

The middle-end change makes the effect on the layout of the assembly
for vector SAT_*.  This patch would like to fix it and make it robust.

gcc/testsuite/ChangeLog:

        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-1.c: Adjust
        asm check and make it robust.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-10.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-11.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-12.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-13.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-14.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-15.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-16.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-17.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-18.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-19.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-2.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-20.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-21.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-22.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-23.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-24.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-25.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-26.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-27.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-28.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-29.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-3.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-30.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-31.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-32.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-4.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-5.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-6.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-7.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-8.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-9.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-1.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-10.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-11.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-12.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-13.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-14.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-15.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-16.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-17.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-18.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-19.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-2.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-20.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-21.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-22.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-23.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-24.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-25.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-26.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-27.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-28.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-29.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-3.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-30.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-31.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-32.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-33.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-34.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-35.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-36.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-37.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-38.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-39.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-4.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-40.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-5.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-6.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-7.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-8.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub-9.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub_trunc-1.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub_trunc-2.c: Ditto.
        * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub_trunc-3.c: Ditto.
        * gcc.target/riscv/rvv/autovec/unop/vec_sat_u_trunc-1.c: Ditto.
        * gcc.target/riscv/rvv/autovec/unop/vec_sat_u_trunc-10.c: Ditto.
        * gcc.target/riscv/rvv/autovec/unop/vec_sat_u_trunc-11.c: Ditto.
        * gcc.target/riscv/rvv/autovec/unop/vec_sat_u_trunc-12.c: Ditto.
        * gcc.target/riscv/rvv/autovec/unop/vec_sat_u_trunc-13.c: Ditto.
        * gcc.target/riscv/rvv/autovec/unop/vec_sat_u_trunc-14.c: Ditto.
        * gcc.target/riscv/rvv/autovec/unop/vec_sat_u_trunc-15.c: Ditto.
        * gcc.target/riscv/rvv/autovec/unop/vec_sat_u_trunc-16.c: Ditto.
        * gcc.target/riscv/rvv/autovec/unop/vec_sat_u_trunc-17.c: Ditto.
        * gcc.target/riscv/rvv/autovec/unop/vec_sat_u_trunc-18.c: Ditto.
        * gcc.target/riscv/rvv/autovec/unop/vec_sat_u_trunc-19.c: Ditto.
        * gcc.target/riscv/rvv/autovec/unop/vec_sat_u_trunc-2.c: Ditto.
        * gcc.target/riscv/rvv/autovec/unop/vec_sat_u_trunc-20.c: Ditto.
        * gcc.target/riscv/rvv/autovec/unop/vec_sat_u_trunc-21.c: Ditto.
        * gcc.target/riscv/rvv/autovec/unop/vec_sat_u_trunc-22.c: Ditto.
        * gcc.target/riscv/rvv/autovec/unop/vec_sat_u_trunc-23.c: Ditto.
        * gcc.target/riscv/rvv/autovec/unop/vec_sat_u_trunc-24.c: Ditto.
        * gcc.target/riscv/rvv/autovec/unop/vec_sat_u_trunc-3.c: Ditto.
        * gcc.target/riscv/rvv/autovec/unop/vec_sat_u_trunc-4.c: Ditto.
        * gcc.target/riscv/rvv/autovec/unop/vec_sat_u_trunc-5.c: Ditto.
        * gcc.target/riscv/rvv/autovec/unop/vec_sat_u_trunc-6.c: Ditto.
        * gcc.target/riscv/rvv/autovec/unop/vec_sat_u_trunc-7.c: Ditto.
        * gcc.target/riscv/rvv/autovec/unop/vec_sat_u_trunc-8.c: Ditto.
        * gcc.target/riscv/rvv/autovec/unop/vec_sat_u_trunc-9.c: Ditto.
So I just spot checked a few. I like that they're dropping testing that aren't core to the test -- ie, it's good to verify something sensible for the vsetvl and (for example) the vsaddu. Testing the loads is much less interesting since these are supposed to be saturation tests.

So, assuming clean run through pre-commit testing, this is fine.


jeff

Reply via email to