blob: a75a3a5a0fc431a24be9d72646b21b1ec573e72a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/* Verify that overloaded built-ins for vec_sub with __int128
inputs produce the right results. */
/* { dg-do compile } */
/* { dg-options "-maltivec -mvsx" } */
/* { dg-additional-options "-mdejagnu-cpu=power8" { target { ! has_arch_pwr8 } } } */
/* { dg-additional-options "-maix64" { target powerpc-ibm-aix* } } */
/* { dg-require-effective-target powerpc_vsx } */
/* { dg-require-effective-target int128 } */
#include "altivec.h"
vector signed __int128
test1 (vector signed __int128 x, vector signed __int128 y)
{
return vec_sub (x, y);
}
vector unsigned __int128
test2 (vector unsigned __int128 x, vector unsigned __int128 y)
{
return vec_sub (x, y);
}
/* { dg-final { scan-assembler-times "vsubuqm" 2 } } */
|