summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/asm-inout.c
blob: 407660927100705cde149715b7120363a22ca0db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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
OpenPOWER on IntegriCloud