blob: 2af9357948af4b6dc0c09cf919f2cd69b7f312b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* { dg-do compile } */
/* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -ftree-vectorize -fdump-rtl-expand-details -fno-schedule-insns -fno-schedule-insns2" } */
/* { dg-skip-if "" { *-*-* } { "-flto" } } */
/* { dg-final { check-function-bodies "**" "" } } */
#include "vec_sat_arith.h"
/*
** vec_sat_u_sub_uint8_t_fmt_8:
** ...
** vsetvli\s+[atx][0-9]+,\s*[atx][0-9]+,\s*e8,\s*m1,\s*ta,\s*ma
** vle8\.v\s+v[0-9]+,\s*0\([atx][0-9]+\)
** vle8\.v\s+v[0-9]+,\s*0\([atx][0-9]+\)
** vssubu\.vv\s+v[0-9]+,\s*v[0-9]+,\s*v[0-9]+
** ...
*/
DEF_VEC_SAT_U_SUB_FMT_8(uint8_t)
/* { dg-final { scan-rtl-dump-times ".SAT_SUB " 4 "expand" } } */
|