[testsuite, nvptx] Fix gcc.dg/tls/thr-cse-1.c
authorTom de Vries <tdevries@suse.de>
Thu, 24 Sep 2020 12:07:42 +0000 (14:07 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 24 Sep 2020 12:30:14 +0000 (14:30 +0200)
commit329851416e698f4455b3021e297a13c248273618
tree6a57e832d292d8adb606ea663ea245002a49e20c
parentc4d283b142790063693be2d517f0209ce2f84499
[testsuite, nvptx] Fix gcc.dg/tls/thr-cse-1.c

With nvptx, we run into:
...
FAIL: gcc.dg/tls/thr-cse-1.c scan-assembler-not \
  emutls_get_address.*emutls_get_address.*
...
because the nvptx assembly looks like:
...
  call (%value_in), __emutls_get_address, (%out_arg1);
  ...
// BEGIN GLOBAL FUNCTION DECL: __emutls_get_address
.extern .func (.param.u64 %value_out) __emutls_get_address (.param.u64 %in_ar0);
...

Fix this by checking the slim final dump instead, where we have just:
...
   12: r35:DI=call [`__emutls_get_address'] argc:0
...

gcc/testsuite/ChangeLog:

2020-09-24  Tom de Vries  <tdevries@suse.de>

* gcc.dg/tls/thr-cse-1.c: Scan final dump instead of assembly for
nvptx.
gcc/testsuite/gcc.dg/tls/thr-cse-1.c