PR target/83368
[official-gcc.git] / gcc / testsuite / gcc.target / sh / pr64659-3.c
blobb5a7f41a0349784692b038d9e414e3b247e6febc
1 /* Check that atomic ops utilize insns with immediate values. */
2 /* { dg-do compile { target { atomic_model_soft_imask_available } } } */
3 /* { dg-options "-O2 -matomic-model=soft-imask,strict -mno-usermode" } */
4 /* { dg-final { scan-assembler-times "add\t#1" 6 } } */
5 /* { dg-final { scan-assembler-times "add\t#-1" 6 } } */
6 /* { dg-final { scan-assembler-times "and\t#1" 12 } } */
7 /* { dg-final { scan-assembler-times "\tor\t#1" 6 } } */
8 /* { dg-final { scan-assembler-times "xor\t#1" 6 } } */
10 #include "pr64659-0.h"