2009-04-17 20:57:14 +00:00
|
|
|
// Header for the PCH test asm.c
|
|
|
|
|
2022-02-10 16:04:13 -05:00
|
|
|
void f(void) {
|
2019-06-03 15:57:25 +00:00
|
|
|
int i,cond;
|
2009-04-17 20:57:14 +00:00
|
|
|
|
|
|
|
asm ("foo\n" : : "a" (i + 2));
|
|
|
|
asm ("foo\n" : [symbolic_name] "=a" (i) : "[symbolic_name]" (i));
|
2019-06-03 15:57:25 +00:00
|
|
|
asm volatile goto("testl %0, %0; jne %l1;" :: "r"(cond)::label_true, loop);
|
|
|
|
label_true:
|
|
|
|
loop:
|
|
|
|
return;
|
2009-04-17 20:57:14 +00:00
|
|
|
}
|
|
|
|
|
2022-02-10 16:04:13 -05:00
|
|
|
void clobbers(void) {
|
2009-04-17 20:57:14 +00:00
|
|
|
asm ("nop" : : : "ax", "#ax", "%ax");
|
|
|
|
asm ("nop" : : : "eax", "rax", "ah", "al");
|
|
|
|
asm ("nop" : : : "0", "%0", "#0");
|
|
|
|
}
|