vendredi 1 juillet 2016

armv8 NEON if condition

I would like to realize if condition in armv8 NEON inline assembly code. In armv7 this was possible through checking overflow bit like this:

VMRS r4, FPSCR
BIC r4, r4, #(1<<27)
VMSR FPSCR, r4

vtst.16 d30, d30, d30
vqadd.u16 d30, d30, d30

vmrs r4, FPSCR
tst r4, #(1<<27)
bne label1

But I am not able to achieve this in armv8 equivalent code. It seems that SQADD doesnt affect overflow bit in FPCR or I cannot check it like this. Is it possible or is there better approach how to skip long part of code?

Thank you

Aucun commentaire:

Enregistrer un commentaire