From cac67bee90a53ce06177df81f2addf91faa1d84a Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Fri, 25 Feb 2022 16:13:09 +0100 Subject: [PATCH] [nvptx, testsuite] Add -misa=sm_35 in nvptx/rotate.c When running with target board nvptx-none-run/-misa=sm_30 we run into: ... FAIL: gcc.target/nvptx/rotate.c scan-assembler-times shf.l.wrap.b32 1 FAIL: gcc.target/nvptx/rotate.c scan-assembler-times shf.r.wrap.b32 1 FAIL: gcc.target/nvptx/rotate.c scan-assembler-not and.b32 ... Fix this by adding an explicit -misa=sm_35 in the test-case. Tested on nvptx. gcc/testsuite/ChangeLog: 2022-02-28 Tom de Vries * gcc.target/nvptx/rotate.c: Add -misa=sm_35. --- gcc/testsuite/gcc.target/nvptx/rotate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/nvptx/rotate.c b/gcc/testsuite/gcc.target/nvptx/rotate.c index 1c9b83b..a604516 100644 --- a/gcc/testsuite/gcc.target/nvptx/rotate.c +++ b/gcc/testsuite/gcc.target/nvptx/rotate.c @@ -1,5 +1,5 @@ /* { dg-do assemble } */ -/* { dg-options "-O2 -save-temps" } */ +/* { dg-options "-O2 -save-temps -misa=sm_35" } */ #define MASK 0x1f -- 2.7.4