]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.target/arm/pr78255-1.c
2 /* { dg-options "-O2" } */
26 void callback0(){__asm("mov r0, r0 \n\t");}
27 void callback1(){__asm("mov r0, r0 \n\t");}
28 void callback2(){__asm("mov r0, r0 \n\t");}
29 void callback3(){__asm("mov r0, r0 \n\t");}
30 void callback4(){__asm("mov r0, r0 \n\t");}
33 memset(&table
, 0, sizeof table
);
35 asm volatile ("" : : : "r3");
37 table
.fun0
= callback0
;
38 table
.fun1
= callback1
;
39 table
.fun2
= callback2
;
40 table
.fun3
= callback3
;
41 table
.fun4
= callback4
;
52 unsigned long p
= (unsigned long) &foo
;
53 asm volatile ("mov r3, %0" : : "r" (p
));