Daniel Dunbar | 1f432ee | 2012-10-19 20:28:44 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -triple x86_64-unknown-unknown -O1 -S -o - %s | FileCheck %s |
Eric Christopher | 3883e66 | 2011-07-26 22:17:02 +0000 | [diff] [blame] | 2 | |
| 3 | typedef long long int64_t; |
| 4 | typedef unsigned char uint8_t; |
| 5 | typedef int64_t x86_reg; |
| 6 | |
| 7 | void avg_pixels8_mmx2(uint8_t *block, const uint8_t *pixels, int line_size, int h) |
| 8 | { |
| 9 | __asm__ volatile("# %0 %1 %2 %3" |
| 10 | :"+g"(h), "+S"(pixels), "+D"(block) |
| 11 | :"r" ((x86_reg)line_size) |
| 12 | :"%""rax", "memory"); |
| 13 | // CHECK: # %ecx %rsi %rdi %rdx |
| 14 | } |