]> git.ipfire.org Git - thirdparty/gcc.git/commit
test: Fix XPASS of bb-slp-43.c for RVV
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>
Mon, 6 Nov 2023 22:35:31 +0000 (06:35 +0800)
committerPan Li <pan2.li@intel.com>
Tue, 7 Nov 2023 07:25:20 +0000 (15:25 +0800)
commitd060f8a4fff81a117923adac1e02edb64160b31b
treef01e8e0ca2156895dbbbdc3850bbf95734927d32
parentf1e084c6c3ef1d1233e35823dacfdf9cee722430
test: Fix XPASS of bb-slp-43.c for RVV

RVV is variable length vector but also has 256 bit VLS mode vector.
This test is vectorized as:

f:
        vsetivli        zero,8,e32,m2,ta,ma
        vle32.v v2,0(a0)
        vmv.v.i v4,1
        vle16.v v1,0(a1)
        vmseq.vv        v0,v2,v4
        vsetvli zero,zero,e16,m1,ta,ma
        vmseq.vi        v1,v1,2
        vsetvli zero,zero,e32,m2,ta,ma
        vmv.v.i v2,0
        vmand.mm        v0,v0,v1
        vmerge.vvm      v2,v2,v4,v0
        vse32.v v2,0(a0)
        ret

Use 256 bit vector, so remove XFAIL for 256 bits vector.

gcc/testsuite/ChangeLog:

* gcc.dg/vect/bb-slp-43.c: Fix XPASS for RVV.
gcc/testsuite/gcc.dg/vect/bb-slp-43.c