Message ID | 32a7e3a7-fdb1-44d1-8cbb-65ecec04409f@linux.ibm.com |
---|---|
State | New |
Headers | show |
Series | [ver,2] rs6000, update effective target for tests builtins-10*.c and, vec_perm-runnable-i128.c | expand |
On 7/16/24 6:19 PM, Carl Love wrote: > use __int128 types that are not supported on all platforms. The > __int128 type is only supported on 64-bit platforms. Need to check that > the platform is 64-bits and support the __int128 type. Add the int128 and > lp64 flags to the target test. The test cases themselves look good, but you need to update your git log entry to not mention the lp64/64-bits since you removed them. Yes, currently, only 64-bit targets support __int128, but our hope is that one day, even 32-bit targets will as well. So how about the following text instead? ... use __int128 types that are not supported on all platforms. Update the tests to check int128 effective target to avoid unsupported type errors on unsupported platforms. Peter
On 7/16/24 6:01 PM, Peter Bergner wrote: > On 7/16/24 6:19 PM, Carl Love wrote: >> use __int128 types that are not supported on all platforms. The >> __int128 type is only supported on 64-bit platforms. Need to check that >> the platform is 64-bits and support the __int128 type. Add the int128 and >> lp64 flags to the target test. > The test cases themselves look good, but you need to update your git log entry > to not mention the lp64/64-bits since you removed them. Yea, I didn't get the lp64 references clean up properly. Sorry about that. > Yes, currently, only > 64-bit targets support __int128, but our hope is that one day, even 32-bit > targets will as well. So how about the following text instead? > > > ... > use __int128 types that are not supported on all platforms. Update the > tests to check int128 effective target to avoid unsupported type errors > on unsupported platforms. OK, changed. Carl
diff --git a/gcc/testsuite/gcc.target/powerpc/builtins-10-runnable.c b/gcc/testsuite/gcc.target/powerpc/builtins-10-runnable.c index dede08358e1..e2d3c990852 100644 --- a/gcc/testsuite/gcc.target/powerpc/builtins-10-runnable.c +++ b/gcc/testsuite/gcc.target/powerpc/builtins-10-runnable.c @@ -1,4 +1,4 @@ -/* { dg-do run } */ +/* { dg-do run { target int128 } } */ /* { dg-require-effective-target vmx_hw } */ /* { dg-options "-maltivec -O2 " } */ diff --git a/gcc/testsuite/gcc.target/powerpc/builtins-10.c b/gcc/testsuite/gcc.target/powerpc/builtins-10.c index b00f53cfc62..007892e2731 100644 --- a/gcc/testsuite/gcc.target/powerpc/builtins-10.c +++ b/gcc/testsuite/gcc.target/powerpc/builtins-10.c @@ -1,4 +1,4 @@ -/* { dg-do compile } */ +/* { dg-do compile { target int128 } } */ /* { dg-options "-O2 -maltivec" } */ /* { dg-require-effective-target powerpc_altivec } */ /* { dg-final { scan-assembler-times "xxsel" 6 } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/vec_perm-runnable-i128.c b/gcc/testsuite/gcc.target/powerpc/vec_perm-runnable-i128.c index 0e0d77bcb84..df1bf873cfc 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec_perm-runnable-i128.c +++ b/gcc/testsuite/gcc.target/powerpc/vec_perm-runnable-i128.c @@ -1,4 +1,4 @@ -/* { dg-do run } */ +/* { dg-do run { target int128 } } */ /* { dg-require-effective-target vmx_hw } */ /* { dg-options "-maltivec -O2 " } */