(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
tic6x/
builtins/
smpyh.c
       1  #include <c6x_intrinsics.h>
       2  extern void abort (void);
       3  
       4  int a1 = 0x50000000;
       5  int b1 = 0xc0000000;
       6  int a2 = 0xd0000000;
       7  int b2 = 0x20000000;
       8  int c = 0x80000000;
       9  int main ()
      10  {
      11    if (_smpyh (a1, b1) != 0xd8000000)
      12      abort ();
      13    if (_smpyh (a2, b2) != 0xf4000000)
      14      abort ();
      15    if (_smpyh (c, c) != 0x7fffffff)
      16      abort ();
      17  
      18    return 0;
      19  }