Skip to content

Commit

Permalink
test: Fix XPASS of bb-slp-43.c for RVV
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
zhongjuzhe authored and ouuleilei-bot committed Nov 6, 2023
1 parent c2d62cd commit dbe4512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcc/testsuite/gcc.dg/vect/bb-slp-43.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ f (int *restrict x, short *restrict y)
}

/* { dg-final { scan-tree-dump-not "mixed mask and nonmask" "slp2" } } */
/* { dg-final { scan-tree-dump-not "vector operands from scalars" "slp2" { target { { vect_int && vect_bool_cmp } && { vect_unpack && vect_hw_misalign } } xfail vect_variable_length } } } */
/* { dg-final { scan-tree-dump-not "vector operands from scalars" "slp2" { target { { vect_int && vect_bool_cmp } && { vect_unpack && vect_hw_misalign } } xfail { vect_variable_length && { ! vect256 } } } } } */

0 comments on commit dbe4512

Please sign in to comment.