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