public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-7403] [nvptx, testsuite] Add -misa=sm_30 in nvptx/uniform-simt-2.c
@ 2022-02-28  9:14 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2022-02-28  9:14 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:4d11a4df041bde159271b69516f1e3e43a305ca2

commit r12-7403-g4d11a4df041bde159271b69516f1e3e43a305ca2
Author: Tom de Vries <tdevries@suse.de>
Date:   Fri Feb 25 16:21:46 2022 +0100

    [nvptx, testsuite] Add -misa=sm_30 in nvptx/uniform-simt-2.c
    
    When running with target board nvptx-none-run/-misa=sm_53 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/uniform-simt-2.c (test for excess errors)
    ...
    
    Fix this by adding an explicit -misa=sm_30 in the test-case.
    
    Tested on nvptx.
    
    gcc/testsuite/ChangeLog:
    
    2022-02-28  Tom de Vries  <tdevries@suse.de>
    
            * gcc.target/nvptx/uniform-simt-2.c: Add -misa=sm_30.

Diff:
---
 gcc/testsuite/gcc.target/nvptx/uniform-simt-2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/nvptx/uniform-simt-2.c b/gcc/testsuite/gcc.target/nvptx/uniform-simt-2.c
index 0f1e4e780fe..b1eee0d618f 100644
--- a/gcc/testsuite/gcc.target/nvptx/uniform-simt-2.c
+++ b/gcc/testsuite/gcc.target/nvptx/uniform-simt-2.c
@@ -1,4 +1,4 @@
-/* { dg-options "-O2 -muniform-simt -mptx=3.1" } */
+/* { dg-options "-O2 -muniform-simt -mptx=3.1 -misa=sm_30" } */
 
 enum memmodel
 {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-28  9:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-28  9:14 [gcc r12-7403] [nvptx, testsuite] Add -misa=sm_30 in nvptx/uniform-simt-2.c Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).