Jim Grosbach | 2987c57 | 2012-07-09 18:34:21 +0000 | [diff] [blame] | 1 | // REQUIRES: arm-registered-target |
NAKAMURA Takumi | 6a662d3 | 2011-07-28 04:50:11 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -S -emit-llvm -triple armv7a-apple-darwin %s -o /dev/null |
Eric Christopher | 9c8dece | 2011-07-28 00:22:59 +0000 | [diff] [blame] | 3 | typedef unsigned short uint16_t; |
| 4 | typedef __attribute__((neon_vector_type(8))) uint16_t uint16x8_t; |
Eric Christopher | 85e5156 | 2011-07-26 22:17:02 +0000 | [diff] [blame] | 5 | |
| 6 | void 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 | } |