blob: 5063054fd46487e7cffed99adac5fff633f9b0d5 [file] [log] [blame]
Dale Johannesen218883a2010-06-17 17:43:14 +00001// RUN: %llvmgcc -S -o - %s | llc -mtriple=x86_64-apple-darwin | FileCheck %s
2// XFAIL: *
3// XTARGET: x86,i386,i686
4
5typedef long long int64_t;
6typedef unsigned char uint8_t;
7typedef int64_t x86_reg;
8
9void avg_pixels8_mmx2(uint8_t *block, const uint8_t *pixels, int line_size, int h)
10{
11 __asm__ volatile("# %0 %1 %2 %3"
12 :"+g"(h), "+S"(pixels), "+D"(block)
13 :"r" ((x86_reg)line_size)
14 :"%""rax", "memory");
Dale Johannesena5989f82010-06-28 22:09:45 +000015// CHECK: # %ecx %rsi %rdi %rdx
Dale Johannesen218883a2010-06-17 17:43:14 +000016 }