From a3d91cd6a6384478d88ed3022ea4bda8646fedea Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Wed, 1 Jun 2011 18:23:56 +0000 Subject: Add a testcase, enabled only on arm, for llvm-gcc r132366. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132409 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/FrontendC/struct-matching-constraint.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/FrontendC/struct-matching-constraint.c (limited to 'test/FrontendC') diff --git a/test/FrontendC/struct-matching-constraint.c b/test/FrontendC/struct-matching-constraint.c new file mode 100644 index 0000000000..d002cddeef --- /dev/null +++ b/test/FrontendC/struct-matching-constraint.c @@ -0,0 +1,19 @@ +// RUN: %llvmgcc -S -march=armv7a %s + +// XFAIL: * +// XTARGET: arm + +typedef struct __simd128_uint16_t +{ + __neon_uint16x8_t val; +} uint16x8_t; + +void b(uint16x8_t sat, uint16x8_t luma) +{ + __asm__("vmov.16 %1, %0 \n\t" + "vtrn.16 %0, %1 \n\t" + :"=w"(luma), "=w"(sat) + :"0"(luma) + ); + +} -- cgit v1.2.3