bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ARM NEON instruction vcvt is encoded wrong


From: André Bergner
Subject: ARM NEON instruction vcvt is encoded wrong
Date: Tue, 19 Jan 2010 13:29:10 +0100

Hi everybody,

I found a bug in gas when assembling the arm neon instruction vcvt.
The data type specifiers of the vcvt instruction are encoded in the wrong order.
I was writing some code using the instruction  "vcvt.s32.f32   q1,q0" which should convert a float value
in q0 to an integer in q1. I'm testing my code using the scratchbox environment. Here I get the correct result.
However, running the same binary on the device (Nokia N900 in my case) I'm getting wrong results.
When I exchange the specifiers to vcvt.f32.s32 I'm getting the same wrong results as on the device now
within scratchbox and the correct result on the device. Thus the opcodes are assembled in wrong order.
Interestingly this bug exists on all levels: the assembler, the disassembler (objdumb) and the scratchbox ARM-emulator.

I haven't tested other instructions using two type specifiers yet, but I assume this to be a general bug concerning all such instructions.

best regrads,
André Bergner


reply via email to

[Prev in Thread] Current Thread [Next in Thread]