[PATCH][Testsuite]Use user defined memmove in gcc.c-torture/execute/builtins/memops...
authorRenlin Li <renlin.li@arm.com>
Mon, 26 Jun 2017 13:28:32 +0000 (13:28 +0000)
committerRenlin Li <renlin@gcc.gnu.org>
Mon, 26 Jun 2017 13:28:32 +0000 (13:28 +0000)
commitfa7ccca021a5943040fd4d19d88e626a9736758e
tree2b97c9a38158c9d3b994034fadc6b76adc65294d
parent5a5c2d16e7acb42f6fec1a289bad17ae4aeb4654
[PATCH][Testsuite]Use user defined memmove in gcc.c-torture/execute/builtins/memops-asm-lib.c

After the change r249278. bcopy is folded into memmove. And in newlib
aarch64 memmove implementation, it will call memcpy in certain conditions.
The memcpy defined in memops-asm-lib.c will abort when the test is running.

A user defined memmove function is defined to bypass the library one.
So that memcpy won't be called accidentally.

gcc/testsuite/

* gcc.c-torture/execute/builtins/memops-asm-lib.c (my_memmove): New.
* gcc.c-torture/execute/builtins/memops-asm.c (memmove): Declare memmove.

Co-Authored-By: Szabolcs Nagy <szabolcs.nagy@arm.com>
From-SVN: r249647
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/builtins/memops-asm-lib.c
gcc/testsuite/gcc.c-torture/execute/builtins/memops-asm.c