make tblgen produce a function that returns the name for a physreg.
[llvm/avr.git] / test / FrontendC / inline-asm-mrv.c
blob6d1df67af1bdd8ffd3dcc0d0595f512e263bf8c8
1 // RUN: %llvmgcc -S %s -o - -O | not grep alloca
2 // PR2094
4 int sad16_sse2(void *v, unsigned char *blk2, unsigned char *blk1,
5 int stride, int h) {
6 int ret;
7 asm volatile( "%0 %1 %2 %3"
8 : "+r" (h), "+r" (blk1), "+r" (blk2)
9 : "r" ((long)stride));
10 asm volatile("set %0 %1" : "=r"(ret) : "r"(blk1));
11 return ret;