2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / sh / pr64660-1.c
blob2d5442c427c3c12ae4164f701c0956ee08b0d3ab
1 /* Check that the appropriate atomic insns are used if the result values
2 are unused. */
3 /* { dg-do compile { target { atomic_model_soft_gusa_available } } } */
4 /* { dg-options "-dp -O2 -matomic-model=soft-gusa,strict" } */
5 /* { dg-final { scan-assembler-times "atomic_add_fetch" 12 } } */
6 /* { dg-final { scan-assembler-times "atomic_and_fetch" 6 } } */
7 /* { dg-final { scan-assembler-times "atomic_or_fetch" 6 } } */
8 /* { dg-final { scan-assembler-times "atomic_xor_fetch" 6 } } */
9 /* { dg-final { scan-assembler-times "atomic_nand_fetch" 6 } } */
10 /* { dg-final { scan-assembler-times "atomic_not_fetch" 12 } } */
12 #include "pr64660-0.h"