blob: 1b5efd3cfeb1a145c54c8e13e7b3cb4921fcf3ff [file] [log] [blame]
David Tweeddd6e1062012-10-26 10:17:44 +00001// REQUIRES: x86-64-registered-target
Daniel Dunbar1f432ee2012-10-19 20:28:44 +00002// RUN: %clang_cc1 -triple x86_64-unknown-unknown -O1 -S -o - %s | FileCheck %s
Eric Christopher3883e662011-07-26 22:17:02 +00003
4typedef long long int64_t;
5typedef unsigned char uint8_t;
6typedef int64_t x86_reg;
7
8void avg_pixels8_mmx2(uint8_t *block, const uint8_t *pixels, int line_size, int h)
9{
10 __asm__ volatile("# %0 %1 %2 %3"
11 :"+g"(h), "+S"(pixels), "+D"(block)
12 :"r" ((x86_reg)line_size)
13 :"%""rax", "memory");
14// CHECK: # %ecx %rsi %rdi %rdx
15 }