aboutsummaryrefslogtreecommitdiff
path: root/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
commit88beebe6ecab1810c3f62f0b5f8be796855861cc (patch)
tree4f451348047e7fcd8fc38b99acb9041a734995b7 /test/CodeGen/asm.c
parent02af974dca0f855dc36d8a8c26bb87f373310815 (diff)
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). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66533 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/asm.c')
-rw-r--r--test/CodeGen/asm.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/CodeGen/asm.c b/test/CodeGen/asm.c
index 99655f8bb7..d6030a64ba 100644
--- a/test/CodeGen/asm.c
+++ b/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;
+}