asm.h 302 B

1234567891011121314
  1. // Header for the PCH test asm.c
  2. void f() {
  3. int i;
  4. asm ("foo\n" : : "a" (i + 2));
  5. asm ("foo\n" : [symbolic_name] "=a" (i) : "[symbolic_name]" (i));
  6. }
  7. void clobbers() {
  8. asm ("nop" : : : "ax", "#ax", "%ax");
  9. asm ("nop" : : : "eax", "rax", "ah", "al");
  10. asm ("nop" : : : "0", "%0", "#0");
  11. }