diff options
author | Tom de Vries <tdevries@suse.de> | 2022-03-03 08:51:33 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2022-03-03 10:43:34 +0100 |
commit | 5065d69fca535eeb869ba209cdf605f3ecf8b18d (patch) | |
tree | e2f86d4518f07fcf1b2ea8117a4fffbe35245223 | |
parent | 431414b5d934866af3f6415a56c35bb57b928fef (diff) | |
download | gcc-5065d69fca535eeb869ba209cdf605f3ecf8b18d.zip gcc-5065d69fca535eeb869ba209cdf605f3ecf8b18d.tar.gz gcc-5065d69fca535eeb869ba209cdf605f3ecf8b18d.tar.bz2 |
[nvptx] Add -mptx=_ in gcc.target/nvptx/smxx.c
With target board nvptx-none-run/-mptx=3.1 we run into:
...
cc1: error: PTX version (-mptx) needs to be at least 4.2 to support \
selected -misa (sm_53)^M
compiler exited with status 1
FAIL: gcc.target/nvptx/sm53.c (test for excess errors)
...
Fix this by adding -mptx=_ in sm53.c and similar.
Tested on nvptx.
gcc/testsuite/ChangeLog:
2022-03-03 Tom de Vries <tdevries@suse.de>
* gcc.target/nvptx/sm53.c: Add -mptx=_.
* gcc.target/nvptx/sm70.c: Same.
* gcc.target/nvptx/sm75.c: Same.
* gcc.target/nvptx/sm80.c: Same.
-rw-r--r-- | gcc/testsuite/gcc.target/nvptx/sm53.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/nvptx/sm70.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/nvptx/sm75.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/nvptx/sm80.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/gcc.target/nvptx/sm53.c b/gcc/testsuite/gcc.target/nvptx/sm53.c index c47790b..b4d819c 100644 --- a/gcc/testsuite/gcc.target/nvptx/sm53.c +++ b/gcc/testsuite/gcc.target/nvptx/sm53.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-misa=sm_53" } */ +/* { dg-options "-misa=sm_53 -mptx=_" } */ #if __PTX_SM__ != 530 #error wrong value for __PTX_SM__ diff --git a/gcc/testsuite/gcc.target/nvptx/sm70.c b/gcc/testsuite/gcc.target/nvptx/sm70.c index dc5a5fd..4bd012b 100644 --- a/gcc/testsuite/gcc.target/nvptx/sm70.c +++ b/gcc/testsuite/gcc.target/nvptx/sm70.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-misa=sm_70" } */ +/* { dg-options "-misa=sm_70 -mptx=_" } */ #if __PTX_SM__ != 700 #error wrong value for __PTX_SM__ diff --git a/gcc/testsuite/gcc.target/nvptx/sm75.c b/gcc/testsuite/gcc.target/nvptx/sm75.c index c098bf7..d159d3f 100644 --- a/gcc/testsuite/gcc.target/nvptx/sm75.c +++ b/gcc/testsuite/gcc.target/nvptx/sm75.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-misa=sm_75" } */ +/* { dg-options "-misa=sm_75 -mptx=_" } */ #if __PTX_SM__ != 750 #error wrong value for __PTX_SM__ diff --git a/gcc/testsuite/gcc.target/nvptx/sm80.c b/gcc/testsuite/gcc.target/nvptx/sm80.c index 3770563..ef6d8b7 100644 --- a/gcc/testsuite/gcc.target/nvptx/sm80.c +++ b/gcc/testsuite/gcc.target/nvptx/sm80.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-misa=sm_80" } */ +/* { dg-options "-misa=sm_80 -mptx=_" } */ #if __PTX_SM__ != 800 #error wrong value for __PTX_SM__ |