(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
nvptx/
atomic-store-3.c
       1  /* Test the atomic store expansion, global state space.  */
       2  
       3  /* { dg-do compile } */
       4  /* { dg-additional-options "-Wno-long-long -misa=sm_30" } */
       5  
       6  enum memmodel
       7  {
       8    MEMMODEL_SEQ_CST = 5
       9  };
      10  
      11  unsigned int u32;
      12  unsigned long long int u64;
      13  
      14  int
      15  main()
      16  {
      17    __atomic_store_n (&u32, 0, MEMMODEL_SEQ_CST);
      18    __atomic_store_n (&u64, 0, MEMMODEL_SEQ_CST);
      19  
      20    return 0;
      21  }
      22  
      23  /* { dg-final { scan-assembler-times "st.global.u32" 1 } } */
      24  /* { dg-final { scan-assembler-times "st.global.u64" 1 } } */
      25  /* { dg-final { scan-assembler-times "membar.sys" 4 } } */