blob: 26e5f1417a401116e39a01f1d2d5de7f4d6d81a9 [file] [log] [blame]
Daniel Dunbar1f432ee2012-10-19 20:28:44 +00001// RUN: %clang_cc1 -triple x86_64-unknown-unknown -O1 -S -o - %s | FileCheck %s
Eric Christopher3883e662011-07-26 22:17:02 +00002
3typedef long long int64_t;
4typedef unsigned char uint8_t;
5typedef int64_t x86_reg;
6
7void 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 }