2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm %s -o %t
|
2009-08-02 11:40:19 +08:00
|
|
|
// RUN: grep "load i8\*\*\* %p.addr" %t | count 1
|
2009-11-03 15:25:45 +08:00
|
|
|
// XFAIL: *
|
2009-08-02 11:40:19 +08:00
|
|
|
|
|
|
|
// PR3800
|
|
|
|
void f(void **p)
|
|
|
|
{
|
|
|
|
__asm__ volatile("" :"+m"(*p));
|
|
|
|
}
|
2009-08-05 02:18:36 +08:00
|
|
|
|
|
|
|
#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
|