1  /* { dg-do compile { target { powerpc*-*-* } } } */
       2  /* dfp_hw represents power 6 */
       3  /* { dg-require-effective-target dfp_hw } */
       4  /* powerpc_vsx_ok represents power7 */
       5  /* { dg-skip-if "" { powerpc_vsx_ok } } */
       6  /* { dg-skip-if "" { powerpc*-*-aix* } } */
       7  /* { dg-options "-mdejagnu-cpu=power6" } */
       8  
       9  /* This test should succeed on both 32- and 64-bit configurations.  */
      10  #include <altivec.h>
      11  
      12  /* This test follows the pattern of pr78056-2.c, which has been
      13   * exercised with binutils 2.25.  This test, however, has not
      14   * been exercised because the author of the test does not have access
      15   * to a development environment that succesfully bootstraps gcc
      16   * while at the same lacking assembler support for power 7.  */
      17  
      18  /* Though the command line specifies power6 target, this function is
      19     to support power7.  */
      20  __attribute__((target("cpu=power7")))
      21  int
      22  div_we (int a, int b)
      23  { /* { dg-warning "lacks power7 support" } */
      24    return __builtin_divwe (a, b); /* { dg-warning "implicit declaration" } */
      25  }