Bug when using DIV
Ningsheng Jian
ningsheng.jian at arm.com
Tue Apr 21 10:56:44 UTC 2020
Arm SVE implementation will support vector integer division, but I think
it's fine not to support it at current stage.
Thanks,
Ningsheng
On 4/21/20 3:32 PM, Yang Zhang wrote:
> Hi John
>
>> (BTW, does ARM implement integer divide on vectors?)
>
> Currently, arm doesn't support div for integer vector either.
>
> Regards
> Yang
>
>
> -----Original Message-----
> From: panama-dev <panama-dev-bounces at openjdk.java.net> On Behalf Of John Rose
> Sent: Tuesday, April 21, 2020 9:18 AM
> To: Sandhya Viswanathan <sandhya.viswanathan at intel.com>
> Cc: panama-dev at openjdk.java.net' <panama-dev at openjdk.java.net>
> Subject: Re: Bug when using DIV
>
> On Apr 20, 2020, at 12:57 PM, Viswanathan, Sandhya <sandhya.viswanathan at intel.com> wrote:
>>
>> Yes, the DIV operator is supported for floating point (float/double) only.
>> That's how we have documented it in the Java doc also.
>> http://cr.openjdk.java.net/~psandoz/panama/vector-api-review/docs/api/
>> jdk.incubator.vector/jdk/incubator/vector/VectorOperators.html#DIV
>> <http://cr.openjdk.java.net/~psandoz/panama/vector-api-review/docs/api
>> /jdk.incubator.vector/jdk/incubator/vector/VectorOperators.html#DIV>
>>
>> I think we should verify and update the implementation accordingly, if that is not already so.
>
> At one point I promoted it to “full service” status because I thought there was support available for the integer versions also.
> It’s a little surprising to have add, sub, and mul, but not div, but even more surprising if div isn’t implemented.
>
> (BTW, does ARM implement integer divide on vectors?)
>
> I hope we can fill that gap before the API is fully mature, but I agree with taking away div for now.
>
> — John
>
More information about the panama-dev
mailing list