[cfe-commits] r97671 - in /cfe/trunk/test/CodeGen: asm-2.c asm-inout.c asm.c
Chris Lattner
sabre at nondot.org
Wed Mar 3 13:56:57 PST 2010
Author: lattner
Date: Wed Mar 3 15:56:57 2010
New Revision: 97671
URL: http://llvm.org/viewvc/llvm-project?rev=97671&view=rev
Log:
merge asm-2.c into asm.c, remove asm-inout.c because it is
XFAIL and already tracked in bugzilla.
Removed:
cfe/trunk/test/CodeGen/asm-2.c
cfe/trunk/test/CodeGen/asm-inout.c
Modified:
cfe/trunk/test/CodeGen/asm.c
Removed: cfe/trunk/test/CodeGen/asm-2.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/asm-2.c?rev=97670&view=auto
==============================================================================
--- cfe/trunk/test/CodeGen/asm-2.c (original)
+++ cfe/trunk/test/CodeGen/asm-2.c (removed)
@@ -1,10 +0,0 @@
-// RUN: %clang_cc1 -emit-llvm %s -o %t -triple i386-pc-linux-gnu -O2
-// RUN: not grep "load" %t
-
-// <rdar://problem/6841383>
-int cpuid(unsigned data) {
- int a, b;
-
- asm("xyz" :"=a"(a), "=d"(b) : "a"(data));
- return a + b;
-}
Removed: cfe/trunk/test/CodeGen/asm-inout.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/asm-inout.c?rev=97670&view=auto
==============================================================================
--- cfe/trunk/test/CodeGen/asm-inout.c (original)
+++ cfe/trunk/test/CodeGen/asm-inout.c (removed)
@@ -1,18 +0,0 @@
-// RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm %s -o %t
-// RUN: grep "load i8\*\*\* %p.addr" %t | count 1
-// XFAIL: *
-
-// PR3800
-void f(void **p)
-{
- __asm__ volatile("" :"+m"(*p));
-}
-
-#if 0
-// FIXME: Once this works again, we must verify that the code below behaves as expected
-// See PR4677.
-void f() {
- unsigned _data = 42;
- __asm__("bswap %0":"+r"(_data));
-}
-#endif
Modified: cfe/trunk/test/CodeGen/asm.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/asm.c?rev=97671&r1=97670&r2=97671&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/asm.c (original)
+++ cfe/trunk/test/CodeGen/asm.c Wed Mar 3 15:56:57 2010
@@ -120,3 +120,14 @@
// CHECK: call void asm "nop", "=*m,
}
+// <rdar://problem/6841383>
+int t18(unsigned data) {
+ int a, b;
+
+ asm("xyz" :"=a"(a), "=d"(b) : "a"(data));
+ return a + b;
+// CHECK: t18(i32
+// CHECK: = call {{.*}}asm "xyz"
+// CHECK-NEXT: extractvalue
+// CHECK-NEXT: extractvalue
+}
More information about the cfe-commits
mailing list