Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / inline-asm-mrv.c
blob929dd90fde60a0037b41b4ca27ff6df7fd9e133b
1 // RUN: %clang_cc1 -emit-llvm %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;