2017-11-01 15:07:57 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2016-07-11 12:36:41 -03:00
|
|
|
#ifndef _TOOLS_ASM_ALTERNATIVE_ASM_H
|
|
|
|
|
#define _TOOLS_ASM_ALTERNATIVE_ASM_H
|
2011-05-18 21:00:44 +02:00
|
|
|
|
2024-09-15 01:07:27 +02:00
|
|
|
#if defined(__s390x__)
|
|
|
|
|
#ifdef __ASSEMBLY__
|
|
|
|
|
.macro ALTERNATIVE oldinstr, newinstr, feature
|
|
|
|
|
\oldinstr
|
|
|
|
|
.endm
|
|
|
|
|
#endif
|
|
|
|
|
#else
|
|
|
|
|
|
2011-05-18 21:00:44 +02:00
|
|
|
/* Just disable it so we can build arch/x86/lib/memcpy_64.S for perf bench: */
|
|
|
|
|
|
2023-05-17 10:34:59 -03:00
|
|
|
#define ALTERNATIVE #
|
2011-05-18 21:00:44 +02:00
|
|
|
|
|
|
|
|
#endif
|
2024-09-15 01:07:27 +02:00
|
|
|
|
|
|
|
|
#endif
|