aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/stringloops/Makefile
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2018-08-01 09:01:16 +0000
committerMichael Ellerman <mpe@ellerman.id.au>2018-08-07 21:49:31 +1000
commit396ab6ab284a9fff4154e9bd491372f43de8284c (patch)
treeb16f409ea42375bf6600779bc8ae18f0eea739f9 /tools/testing/selftests/powerpc/stringloops/Makefile
parentpowerpc/lib: Implement strlen() in assembly for PPC32 (diff)
downloadlinux-dev-396ab6ab284a9fff4154e9bd491372f43de8284c.tar.xz
linux-dev-396ab6ab284a9fff4154e9bd491372f43de8284c.zip
selftests/powerpc: Update strlen() test to test the new assembly function for PPC32
This patch adds a test for testing the new assembly strlen() for PPC32 Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> [mpe: Fix 64-bit build] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/testing/selftests/powerpc/stringloops/Makefile')
-rw-r--r--tools/testing/selftests/powerpc/stringloops/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/testing/selftests/powerpc/stringloops/Makefile b/tools/testing/selftests/powerpc/stringloops/Makefile
index 31499587b483..10b35c87a4f4 100644
--- a/tools/testing/selftests/powerpc/stringloops/Makefile
+++ b/tools/testing/selftests/powerpc/stringloops/Makefile
@@ -20,6 +20,13 @@ endif
$(OUTPUT)/strlen: strlen.c string.c
+ifeq ($(build_32bit),1)
+$(OUTPUT)/strlen_32: strlen.c
+$(OUTPUT)/strlen_32: CFLAGS += -m32
+
+TEST_GEN_PROGS += strlen_32
+endif
+
ASFLAGS = $(CFLAGS)
include ../../lib.mk