2012-07-10 02:34:21 +08:00
|
|
|
// REQUIRES: arm-registered-target
|
2011-07-28 12:50:11 +08:00
|
|
|
// RUN: %clang_cc1 -S -emit-llvm -triple armv7a-apple-darwin %s -o /dev/null
|
2011-07-28 08:22:59 +08:00
|
|
|
typedef unsigned short uint16_t;
|
|
|
|
typedef __attribute__((neon_vector_type(8))) uint16_t uint16x8_t;
|
2011-07-27 06:17:02 +08:00
|
|
|
|
|
|
|
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)
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|