(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
aarch64/
cmn-neg.c
       1  /* { dg-do run } */
       2  /* { dg-options "-O2 --save-temps" } */
       3  
       4  extern void abort (void);
       5  
       6  void __attribute__ ((noinline))
       7  foo_s32 (int a, int b)
       8  {
       9    if (a == -b)
      10      abort ();
      11  }
      12  /* { dg-final { scan-assembler "cmn\tw\[0-9\]" } } */
      13  
      14  void __attribute__ ((noinline))
      15  foo_s64 (long long a, long long b)
      16  {
      17    if (a == -b)
      18      abort ();
      19  }
      20  /* { dg-final { scan-assembler "cmn\tx\[0-9\]" } } */
      21  
      22  
      23  int
      24  main (void)
      25  {
      26    int a = 30;
      27    int b = 42;
      28    foo_s32 (a, b);
      29    foo_s64 (a, b);
      30    return 0;
      31  }
      32