From 5a23264452fbf8ad3c65e0869fa902f7a0e918a1 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Sun, 2 Aug 2009 03:40:19 +0000 Subject: Don't evaluate inout constraints twice. Fixes PR3800. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77854 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/asm-inout.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/CodeGen/asm-inout.c (limited to 'test/CodeGen/asm-inout.c') diff --git a/test/CodeGen/asm-inout.c b/test/CodeGen/asm-inout.c new file mode 100644 index 0000000000..e0e42a319d --- /dev/null +++ b/test/CodeGen/asm-inout.c @@ -0,0 +1,8 @@ +// RUN: clang-cc -triple i386-unknown-unknown -emit-llvm %s -o %t && +// RUN: grep "load i8\*\*\* %p.addr" %t | count 1 + +// PR3800 +void f(void **p) +{ + __asm__ volatile("" :"+m"(*p)); +} -- cgit v1.2.3