Liu,
Hongtao
Subject: Re: [PATCH v3] Vect: Optimize truncation for .SAT_SUB operands
On Tue, Jul 9, 2024 at 6:03 AM wrote:
>
> From: Pan Li
>
> To get better vectorized code of .SAT_SUB, we would like to avoid the
> truncated operation for the assignment. For example, as below.
&
On Tue, Jul 9, 2024 at 6:03 AM wrote:
>
> From: Pan Li
>
> To get better vectorized code of .SAT_SUB, we would like to avoid the
> truncated operation for the assignment. For example, as below.
>
> unsigned int _1;
> unsigned int _2;
> unsigned short int _4;
> _9 = (unsigned short int).SAT_SUB
From: Pan Li
To get better vectorized code of .SAT_SUB, we would like to avoid the
truncated operation for the assignment. For example, as below.
unsigned int _1;
unsigned int _2;
unsigned short int _4;
_9 = (unsigned short int).SAT_SUB (_1, _2);
If we make sure that the _1 is in the range of