This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Int8 operation in G72

Does Mali suuport 8bit int vector operation to workaround overflow issue like scalar operation? 

Such as..

I tested with G72.

In scalar operation,

--------------------------------

uchar a = 255;

uchar b = 255;

Int c = a + b;

--------------------------------

It results 510 in c.

But in case of vector,

--------------------------------

uchar4 a={255,255,255,255}

uchar4 b={255,255,255,255}

int4 c = a + b;

--------------------------------

It prints wrong answer..

So my question is 

1. Scalar operation uses general purpose register and it is 32bit register. That's why scalar operation results correctly. Am i right? 

2. Why does Vector operation not support auto cast like scalar operation ? Does it not support general purpose register like in scalar operation?

3. I heard G52 and it supports int8 operation. Does it mean G52 supports 8bit vector register which resolve second case above?

Parents Reply Children
No data