f4a2713ac8
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
14 lines
426 B
C
14 lines
426 B
C
// REQUIRES: arm-registered-target
|
|
// RUN: %clang_cc1 -S -emit-llvm -triple armv7a-apple-darwin -target-feature +neon %s -o /dev/null
|
|
typedef unsigned short uint16_t;
|
|
typedef __attribute__((neon_vector_type(8))) uint16_t uint16x8_t;
|
|
|
|
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)
|
|
);
|
|
|
|
}
|