diff options
Diffstat (limited to 'clang/test/CodeGen/struct-matching-constraint.c')
-rw-r--r-- | clang/test/CodeGen/struct-matching-constraint.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/CodeGen/struct-matching-constraint.c b/clang/test/CodeGen/struct-matching-constraint.c new file mode 100644 index 0000000..40c444f --- /dev/null +++ b/clang/test/CodeGen/struct-matching-constraint.c @@ -0,0 +1,13 @@ +// RUN: %clang_cc1 -S -emit-llvm -triple armv7a-apple-darwin %s -o /dev/null +typedef unsigned short uint16_t; +typedef __attribute__((neon_vector_type(8))) uint16_t 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) + ); + +} |