blob: 40c444f2b40df9628952c48ac8ee6792e525ffbf [file] [log] [blame]
NAKAMURA Takumia17f0c42011-07-28 04:50:11 +00001// RUN: %clang_cc1 -S -emit-llvm -triple armv7a-apple-darwin %s -o /dev/null
Eric Christopher0b2b7662011-07-28 00:22:59 +00002typedef unsigned short uint16_t;
3typedef __attribute__((neon_vector_type(8))) uint16_t uint16x8_t;
Eric Christopher3883e662011-07-26 22:17:02 +00004
5void b(uint16x8_t sat, uint16x8_t luma)
6{
7 __asm__("vmov.16 %1, %0 \n\t"
8 "vtrn.16 %0, %1 \n\t"
9 :"=w"(luma), "=w"(sat)
10 :"0"(luma)
11 );
12
13}