Re: [PATCH 3/3] SVE intrinsics: Fold constant operands for svmul.

2024-09-02 Thread Richard Sandiford
Jennifer Schmitz writes: >> Does: >> >> svmul_n_u32_x (pg, svindex_u32 (4, 1), 2); >> >> get optimised to a single INDEX of #8, #2? It would be good to test >> things like that if so. >> >> Looks good to me otherwise. >> >> Thanks, >> Richard > I tested this test case, but - unlike svdup - s

Re: [PATCH 3/3] SVE intrinsics: Fold constant operands for svmul.

2024-09-02 Thread Jennifer Schmitz
nt folding. >> >> gcc/testsuite/ >> * gcc.target/aarch64/sve/const_fold_mul_1.c: New test. >> >> From 648d7bfe4f5dbab734e8823f82b289aa381aafb9 Mon Sep 17 00:00:00 2001 >> From: Jennifer Schmitz >> Date: Thu, 29 Aug 2024 05:12:53 -0700 >> Subject: [PATCH

Re: [PATCH 3/3] SVE intrinsics: Fold constant operands for svmul.

2024-08-30 Thread Richard Sandiford
> Date: Thu, 29 Aug 2024 05:12:53 -0700 > Subject: [PATCH 3/3] SVE intrinsics: Fold constant operands for svmul. > > This patch implements constant folding for svmul. If the predicate is > ptrue or predication is _x, it uses vector_const_binop with > aarch64_const_binop as callbac

[PATCH 3/3] SVE intrinsics: Fold constant operands for svmul.

2024-08-30 Thread Jennifer Schmitz
This patch implements constant folding for svmul. If the predicate is ptrue or predication is _x, it uses vector_const_binop with aarch64_const_binop as callback and tree_code MULT_EXPR to fold constant integer operands. Tests were added to check the produced assembly for different predicates, sign