[llvm-commits] [llvm] r50397 - /llvm/trunk/test/CFrontend/inline-asm-mrv.c
Chris Lattner
sabre at nondot.org
Mon Apr 28 22:53:29 PDT 2008
Author: lattner
Date: Tue Apr 29 00:53:29 2008
New Revision: 50397
URL: http://llvm.org/viewvc/llvm-project?rev=50397&view=rev
Log:
new testcase for PR2094. The inline asms should not pin allocas to the
stack anymore.
Added:
llvm/trunk/test/CFrontend/inline-asm-mrv.c
Added: llvm/trunk/test/CFrontend/inline-asm-mrv.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CFrontend/inline-asm-mrv.c?rev=50397&view=auto
==============================================================================
--- llvm/trunk/test/CFrontend/inline-asm-mrv.c (added)
+++ llvm/trunk/test/CFrontend/inline-asm-mrv.c Tue Apr 29 00:53:29 2008
@@ -0,0 +1,12 @@
+// RUN: %llvmgcc -S %s -o - -O | not grep alloca
+// PR2094
+
+int sad16_sse2(void *v, unsigned char *blk2, unsigned char *blk1,
+ int stride, int h) {
+ int ret;
+ asm volatile( "%0 %1 %2 %3"
+ : "+r" (h), "+r" (blk1), "+r" (blk2)
+ : "r" ((long)stride));
+ asm volatile("set %0 %1" : "=r"(ret) : "r"(blk1));
+ return ret;
+}
More information about the llvm-commits
mailing list