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

Getting ERROR "unknown mnemonics for UQSUB8 instruction"

Hi community,

I have tried to compile the source code for openVG
I have given proper cross compiler which is required by the platform still I am getting the error of unknown mnemonics for the instruction UQSUB8

Environment:

- Linux platform

- CROSS COMPILE tool chain = aarch64-linux-gcc

- ARMv8-a architecture

Code snippet:

for (i = 0; i < 256; ++i) 
        { 
                c = lut[i]; 
                /* Extract alpha and clamp color components */ 
                inva = 0x01010101 * ((~c) & 0xFF); 
                c = _mali_osu_sataddu8(c, inva); 
                cpu_ptr[i] = _mali_osu_satsubu8(c, inva); 
        } 

MALI_STATIC_INLINE u32 _mali_osu_satsubu8(u32 x, u32 y) 
{ 
        u32 retval; 
        __asm__("UQSUB8 %0, %1, %2" 
                : "=r"(retval)      /* output */ 
                : "r"(x), "r"(y)    /* input */ 
               ); 
        return retval; 
}

Can you please suggest me how can I solve this issue?

Thanks,

DP