diff options
author | Tom de Vries <tdevries@suse.de> | 2020-09-24 12:22:13 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2020-09-24 12:41:55 +0200 |
commit | fe28d34079aad7d3bf8d9bfd78d0ba43110b7906 (patch) | |
tree | 043c9296b7814e609d0678aa4fe4674b65ca927a | |
parent | 59c8329389751ec39985a89a673768b4d4fdb338 (diff) | |
download | gcc-fe28d34079aad7d3bf8d9bfd78d0ba43110b7906.zip gcc-fe28d34079aad7d3bf8d9bfd78d0ba43110b7906.tar.gz gcc-fe28d34079aad7d3bf8d9bfd78d0ba43110b7906.tar.bz2 |
[testsuite, nvptx] Fix string matching in gcc.dg/pr87314-1.c
with nvptx we run into:
...
FAIL: gcc.dg/pr87314-1.c scan-assembler hellooo
...
The required string is part of the assembly, just in a different format than
expected:
...
.const .align 1 .u8 $LC0[12] =
{ 104, 101, 108, 108, 111, 111, 111, 111, 98, 121, 101, 0 };
...
Fix this by adding an nvptx-specific scan-assembler directive.
Tested on nvptx and x86_64.
gcc/testsuite/ChangeLog:
2020-09-24 Tom de Vries <tdevries@suse.de>
* gcc.dg/pr87314-1.c: Add nvptx-specific scan-assembler directive.
-rw-r--r-- | gcc/testsuite/gcc.dg/pr87314-1.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/pr87314-1.c b/gcc/testsuite/gcc.dg/pr87314-1.c index 9bc9056..0cb9c07 100644 --- a/gcc/testsuite/gcc.dg/pr87314-1.c +++ b/gcc/testsuite/gcc.dg/pr87314-1.c @@ -8,4 +8,6 @@ int h() { return "bye"=="helloooobye"+8; } /* { dg-final { scan-tree-dump-times "hello" 1 "original" } } */ /* The test in h() should be retained because the result depends on string merging. */ -/* { dg-final { scan-assembler "hellooo" } } */ +/* { dg-final { scan-assembler "hellooo" { target { ! nvptx*-*-* } } } } */ +/* { dg-final { scan-assembler "104, 101, 108, 108, 111, 111, 111" { target { nvptx*-*-* } } } } */ + |