[PATCH] Fix crash when using NEON array types in inline ASM

Oliver Stannard oliver.stannard at arm.com
Wed Nov 13 03:36:54 PST 2013


Hi,

The following code causes a crash in the LLVM backend, as uint8x8x4_t is a
struct containing an array, which is not handled by the ARM backend. This
patch prevents the crash.

#include <arm_neon.h>
int main(int argc, char *argv[])
{
    uint8x8x4_t vsrc;

    asm volatile (
        "vld4.u8 %h[vsrc], %[src]!;"
        : [vsrc] "=w" (vsrc), [src] "+r" (argv[0])
        :
        :
    );
}

Oliver
-------------- next part --------------
A non-text attachment was scrubbed...
Name: inline-asm-neon-arrays.patch
Type: application/octet-stream
Size: 1890 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131113/3dbb5b8d/attachment.obj>


More information about the llvm-commits mailing list