2018-05-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr43299.c
blobd71c896893fc904b45c695a85ca8e31f584e19fd
1 /* PR debug/43299 */
2 /* { dg-do assemble } */
3 /* { dg-options "-g -O2" } */
5 extern void *emit_insn (void *);
7 __attribute__((noinline))
8 void *gen_load_locked_si (void *x, void *y)
10 return x;
13 __attribute__((noinline))
14 void *gen_load_locked_di (void *x, void *y)
16 return x;
19 void
20 emit_load_locked (int mode, void *reg, void *mem)
22 void * (*fn) (void *, void *) = ((void *)0);
23 if (mode == 9)
24 fn = gen_load_locked_si;
25 else if (mode == 10)
26 fn = gen_load_locked_di;
27 emit_insn (fn (reg, mem));