1 /* Check that the appropriate atomic insns are used if the result values 2 are unused. */ 3 /* { dg-do compile { target { atomic_model_soft_tcb_available } } } */ 4 /* { dg-options "-dp -O2 -matomic-model=soft-tcb,gbr-offset=0,strict" } */ 5 /* { dg-final { scan-assembler-times "atomic_add" 12 } } */ 6 /* { dg-final { scan-assembler-times "atomic_and" 6 } } */ 7 /* { dg-final { scan-assembler-times "atomic_or" 6 } } */ 8 /* { dg-final { scan-assembler-times "atomic_xor" 6 } } */ 9 /* { dg-final { scan-assembler-times "atomic_nand" 6 } } */ 10 /* { dg-final { scan-assembler-times "atomic_not" 12 } } */ 11 /* { dg-final { scan-assembler-not "fetch" } } */ 12 13 #include "pr64660-0.h" 14