Mercurial > hg > CbC > CbC_llvm
annotate clang/test/PCH/asm.h @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | c4bab56944e8 |
rev | line source |
---|---|
150 | 1 // Header for the PCH test asm.c |
2 | |
3 void f() { | |
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); | |
9 label_true: | |
10 loop: | |
11 return; | |
12 } | |
13 | |
14 void clobbers() { | |
15 asm ("nop" : : : "ax", "#ax", "%ax"); | |
16 asm ("nop" : : : "eax", "rax", "ah", "al"); | |
17 asm ("nop" : : : "0", "%0", "#0"); | |
18 } |