2 # define __ASM_FORM(x) " " #x " "
3 # define JUMP_LABEL_INITIAL_NOP ".byte 0xe9 \n\t .long 0\n\t"
4 # define __ASM_SEL(a,b) __ASM_FORM(b)
5 #define _ASM_PTR __ASM_SEL(.long, .quad)
7 # define JUMP_LABEL(key, label) \
10 JUMP_LABEL_INITIAL_NOP \
11 ".pushsection __jump_table, \"a\" \n\t"\
12 _ASM_PTR "1b, %l[" #label "], %c0 \n\t" \
14 : : "i" (key) : : label); \
17 int main(int argc
, char *argv
[])
19 JUMP_LABEL("1", do_trace
);
26 * check-name: Asm with goto labels.