1  /* PR target/94795 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-O2" } */
       4  
       5  char fooc (char x)
       6  {
       7    return -(x == 0);
       8  }
       9  
      10  short foos (short x)
      11  {
      12    return -(x == 0);
      13  }
      14  
      15  long fooi (long x)
      16  {
      17    return -(x == 0);
      18  }
      19  
      20  /* { dg-final { scan-assembler-times "sbb" 3 } } */