(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
powerpc/
fold-vec-cmp-char.h
       1  /* Header file for fold-vec-cmp-char*.c tests.  Used to verify codegen results
       2     for vec_cmp{eq,ge,gt,le,lt,ne} builtins.  */
       3  
       4  #include <altivec.h>
       5  
       6  vector bool char
       7  test3_eq (vector signed char x, vector signed char y)
       8  {
       9    return vec_cmpeq (x, y);
      10  }
      11  
      12  vector bool char
      13  test6_eq (vector unsigned char x, vector unsigned char y)
      14  {
      15    return vec_cmpeq (x, y);
      16  }
      17  
      18  vector bool char
      19  test3_ge (vector signed char x, vector signed char y)
      20  {
      21    return vec_cmpge (x, y);
      22  }
      23  
      24  vector bool char
      25  test6_ge (vector unsigned char x, vector unsigned char y)
      26  {
      27    return vec_cmpge (x, y);
      28  }
      29  
      30  vector bool char
      31  test3_gt (vector signed char x, vector signed char y)
      32  {
      33    return vec_cmpgt (x, y);
      34  }
      35  
      36  vector bool char
      37  test6_gt (vector unsigned char x, vector unsigned char y)
      38  {
      39    return vec_cmpgt (x, y);
      40  }
      41  
      42  vector bool char
      43  test3_le (vector signed char x, vector signed char y)
      44  {
      45    return vec_cmple (x, y);
      46  }
      47  
      48  vector bool char
      49  test6_le (vector unsigned char x, vector unsigned char y)
      50  {
      51    return vec_cmple (x, y);
      52  }
      53  
      54  vector bool char
      55  test3_lt (vector signed char x, vector signed char y)
      56  {
      57    return vec_cmplt (x, y);
      58  }
      59  
      60  vector bool char
      61  test6_lt (vector unsigned char x, vector unsigned char y)
      62  {
      63    return vec_cmplt (x, y);
      64  }
      65  
      66  vector bool char
      67  test3_ne (vector signed char x, vector signed char y)
      68  {
      69    return vec_cmpne (x, y);
      70  }
      71  
      72  vector bool char
      73  test6_ne (vector unsigned char x, vector unsigned char y)
      74  {
      75    return vec_cmpne (x, y);
      76  }
      77