(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
aarch64/
pr102008.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2" } */
       3  
       4  struct Foo {  int a;  int b; };
       5  
       6  int test(int side, const struct Foo *foo) {
       7    if (side == 1) return foo->a;
       8    return foo->b;
       9  }
      10  
      11  /* We want to if-convert the load, not the address.  */
      12  /* { dg-final { scan-assembler-not "add" } } */
      13  /* { dg-final { scan-assembler-times "csel" 1 } } */