diff options
author | Nathan Sidwell <nathan@acm.org> | 2015-11-26 14:13:28 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2015-11-26 14:13:28 +0000 |
commit | 863af9a44a8f5995d57055054e84ff379a62440a (patch) | |
tree | 434630d2024f7693ad067fdab445822a10200ff8 /gcc/testsuite | |
parent | 5977cb070e54643f79b5a05a5378fe060e0319da (diff) | |
download | gcc-863af9a44a8f5995d57055054e84ff379a62440a.zip gcc-863af9a44a8f5995d57055054e84ff379a62440a.tar.gz gcc-863af9a44a8f5995d57055054e84ff379a62440a.tar.bz2 |
nvptx.c (write_func_decl_from_insn): Replace callee arg with name.
* config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
arg with name. Don't deal with split regs. Tweak formatting.
(nvptx_expand_call): Adjust write_func_decl_from_insn call.
(nvptx_output_call_insn): Don't deal with split regs here.
testsuite/
* gcc.target/nvptx/proto-1.c: Adjust expected asm.
From-SVN: r230965
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/nvptx/proto-1.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cf4f486..46810e8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-11-26 Nathan Sidwell <nathan@acm.org> + + * gcc.target/nvptx/proto-1.c: Adjust expected asm. + 2015-11-26 Richard Biener <rguenther@suse.de> PR testsuite/68555 diff --git a/gcc/testsuite/gcc.target/nvptx/proto-1.c b/gcc/testsuite/gcc.target/nvptx/proto-1.c index 5f77359..6245d91 100644 --- a/gcc/testsuite/gcc.target/nvptx/proto-1.c +++ b/gcc/testsuite/gcc.target/nvptx/proto-1.c @@ -6,8 +6,8 @@ int f(void) /* Check that without an explicit prototype, we deduce from call site the signature for the (mandatory in PTX) prototype. */ - /* extern int acc_on_device_(int *); */ + /* extern int foo (int *); */ /* { dg-final { scan-assembler-not "\\\.callprototype" } } */ - /* { dg-final { scan-assembler "\\\.extern \\\.func \\\(\[^,\n\r\]+\\\)acc_on_device_ \\\(\[^,\n\r\]+\\\);" } } */ - return !acc_on_device_(&dev); + /* { dg-final { scan-assembler "\\\.extern \\\.func \\\(\[^,\n\r\]+\\\) foo \\\(\[^,\n\r\]+\\\);" } } */ + return !foo(&dev); } |