opnsense-src/test/CodeGen/asm-inout.c

19 lines
389 B
C
Raw Normal View History

2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm %s -o %t
2009-10-14 14:03:49 -04:00
// RUN: grep "load i8\*\*\* %p.addr" %t | count 1
2009-11-04 10:04:32 -05:00
// XFAIL: *
2009-10-14 14:03:49 -04:00
// 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