// { dg-do assemble { target sparc-sun-* } } // { dg-options "-S" } // GROUPS passed asm-extension // This used to crash because c…
ASM-C Interface 源代码
汇集 ASM-C Interface 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
/* { dg-do compile } */ /* { dg-options "" } */ void f() { asm volatile ("foo%%bar" : : ); } /* { dg-final { scan-assembler "f…
/* { dg-do compile } */ /* { dg-options "" } */ int main() { int x, y, z; asm volatile ("test0 X%0Y%[arg]Z" : [arg] "=g" (x)…
/* Gcc 3.3.1 deprecates memory inputs of non-lvalues. */ /* { dg-do compile } */ void test(void) { register int r; register …
/* PR inline-asm/15740 */ /* { dg-do compile } */ /* { dg-options "-O" } */ void foo(void) { int a, b; a = 1; b = a + 1; …
/* { dg-options "-Werror" } */ __thread int i; int foo () { asm volatile ("" :: "m" (&i)); /* { dg-error "directly addressable…
/* Asm operands that are given as hard registers must keep the same hard register all the way through compilation. Example der…
/* { dg-do compile { target i?86-*-* } } */ struct x { int selector; }; void f() { struct x* addr; __asm__("mov %%gs,%0":"…
/* { dg-do compile } */ /* { dg-options "" } */ void f() { asm ("foo%%bar"); } /* { dg-final { scan-assembler "foo%%bar" } } *…
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-optimized" } */ #ifdef __hppa__ #define REGISTER "1" #else #define REGIS…