xref: /llvm-project/clang/test/CodeGen/struct-matching-constraint.c (revision c5de4dd1eab00df76c1a68c5f397304ceacb71f2)
1 // REQUIRES: arm-registered-target
2 // RUN: %clang_cc1 -emit-llvm -triple armv7a-apple-darwin -target-feature +neon %s -o /dev/null
3 typedef unsigned short uint16_t;
4 typedef __attribute__((neon_vector_type(8))) uint16_t uint16x8_t;
5 
b(uint16x8_t sat,uint16x8_t luma)6 void b(uint16x8_t sat, uint16x8_t luma)
7 {
8   __asm__("vmov.16 %1, %0   \n\t"
9                                            "vtrn.16 %0, %1   \n\t"
10    :"=w"(luma), "=w"(sat)
11    :"0"(luma)
12    );
13 
14 }
15