blob: dfc3014c5d9a5757d7cea43be0012a899518d815 [file] [log] [blame]
Jim Grosbachf7947052012-07-09 18:34:21 +00001// REQUIRES: arm-registered-target
Amara Emerson2440fb12013-09-16 18:07:35 +00002// RUN: %clang_cc1 -S -emit-llvm -triple armv7a-apple-darwin -target-feature +neon %s -o /dev/null
Eric Christopher0b2b7662011-07-28 00:22:59 +00003typedef unsigned short uint16_t;
4typedef __attribute__((neon_vector_type(8))) uint16_t uint16x8_t;
Eric Christopher3883e662011-07-26 22:17:02 +00005
6void 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}