annotate gcc/testsuite/gcc.target/powerpc/fold-vec-add-7.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Verify that overloaded built-ins for vec_add with __int128
kono
parents:
diff changeset
2 inputs produce the right results. */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 /* { dg-do compile } */
kono
parents:
diff changeset
5 /* { dg-require-effective-target powerpc_p8vector_ok } */
kono
parents:
diff changeset
6 /* { dg-require-effective-target int128 } */
kono
parents:
diff changeset
7 /* { dg-options "-maltivec -mvsx -mpower8-vector" } */
kono
parents:
diff changeset
8 /* { dg-additional-options "-maix64" { target powerpc-ibm-aix* } } */
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 #include "altivec.h"
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 vector signed __int128
kono
parents:
diff changeset
13 test1 (vector signed __int128 x, vector signed __int128 y)
kono
parents:
diff changeset
14 {
kono
parents:
diff changeset
15 return vec_add (x, y);
kono
parents:
diff changeset
16 }
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 vector unsigned __int128
kono
parents:
diff changeset
19 test2 (vector unsigned __int128 x, vector unsigned __int128 y)
kono
parents:
diff changeset
20 {
kono
parents:
diff changeset
21 return vec_add (x, y);
kono
parents:
diff changeset
22 }
kono
parents:
diff changeset
23
kono
parents:
diff changeset
24 /* { dg-final { scan-assembler-times "vadduqm" 2 } } */