summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/asm.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-10 06:42:37 +0000
committerChris Lattner <sabre@nondot.org>2009-03-10 06:42:37 +0000
commitf85a938985ede38fca6ee0b7fe73c062124b24cb (patch)
treeecaccc0031a5860674f9e0908a8a71ae37952846 /clang/test/CodeGen/asm.c
parent6dd0f9263de00267885cbb682c615bc72c5dc4e2 (diff)
downloadbcm5719-llvm-f85a938985ede38fca6ee0b7fe73c062124b24cb.tar.gz
bcm5719-llvm-f85a938985ede38fca6ee0b7fe73c062124b24cb.zip
Fix PR3682 by just disabling a broken assertion. This check should be
done in sema, and is reflected by the existing PR3258. In the meantime, fix PR3682 by disabling a bogus assertion (which doesn't account for + operands). llvm-svn: 66533
Diffstat (limited to 'clang/test/CodeGen/asm.c')
-rw-r--r--clang/test/CodeGen/asm.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/test/CodeGen/asm.c b/clang/test/CodeGen/asm.c
index 99655f8bb7c..d6030a64ba8 100644
--- a/clang/test/CodeGen/asm.c
+++ b/clang/test/CodeGen/asm.c
@@ -28,7 +28,7 @@ void t6(void) {
__asm__ volatile("" : : "i" (t6));
}
-// RUN: grep "T7 NAMED: \$2" %t
+// RUN: grep "T7 NAMED: \$2" %t &&
void t7(int a) {
__asm__ volatile("T7 NAMED: %[input]" : "+r"(a): [input] "i" (4));
}
@@ -37,3 +37,9 @@ void t7(int a) {
void t8() {
__asm__ volatile("T8 NAMED MODIFIER: %c[input]" :: [input] "i" (4));
}
+
+// PR3682
+unsigned t9(unsigned int a) {
+ asm("bswap %0 %1" : "+r" (a));
+ return a;
+}
OpenPOWER on IntegriCloud