Skip to content

Commit 121652b

Browse files
clazissartemiy-volkov
authored andcommitted
arc64: Update TARGET_VECTORIZE_VEC_PERM_CONST
Signed-off-by: Claudiu Zissulescu <[email protected]>
1 parent 1d151f4 commit 121652b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

gcc/config/arc64/arc64.cc

+6-2
Original file line numberDiff line numberDiff line change
@@ -4429,11 +4429,15 @@ arc64_simd_lane_pack (struct e_vec_perm_d *d)
44294429
/* Implement TARGET_VECTORIZE_VEC_PERM_CONST. */
44304430

44314431
static bool
4432-
arc64_vectorize_vec_perm_const (machine_mode vmode, rtx target, rtx op0,
4433-
rtx op1, const vec_perm_indices &sel)
4432+
arc64_vectorize_vec_perm_const (machine_mode vmode, machine_mode op_mode,
4433+
rtx target, rtx op0, rtx op1,
4434+
const vec_perm_indices &sel)
44344435
{
44354436
struct e_vec_perm_d d;
44364437

4438+
if (vmode != op_mode)
4439+
return false;
4440+
44374441
/* Check whether the mask can be applied to a single vector. */
44384442
if (sel.ninputs () == 1
44394443
|| (op0 && rtx_equal_p (op0, op1)))

0 commit comments

Comments
 (0)