19 lines · c
1// Header for the PCH test asm.c2 3void f(void) {4 int i,cond;5 6 asm ("foo\n" : : "a" (i + 2));7 asm ("foo\n" : [symbolic_name] "=a" (i) : "[symbolic_name]" (i));8 asm volatile goto("testl %0, %0; jne %l1;" :: "r"(cond)::label_true, loop);9label_true:10loop:11 return;12}13 14void clobbers(void) {15 asm ("nop" : : : "ax", "#ax", "%ax");16 asm ("nop" : : : "eax", "rax", "ah", "al");17 asm ("nop" : : : "0", "%0", "#0");18}19