From: Luke Kenneth Casson Leighton Date: Sun, 1 Jan 2023 15:12:19 +0000 (+0000) Subject: add -mno-altivec option to xchacha20 test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=465a3fac1584648e0762a7ac8e4f52946a1e7a1a;p=openpower-isa.git add -mno-altivec option to xchacha20 test --- diff --git a/crypto/chacha20/Makefile.cross b/crypto/chacha20/Makefile.cross index fb79bb85..178cbeab 100755 --- a/crypto/chacha20/Makefile.cross +++ b/crypto/chacha20/Makefile.cross @@ -5,7 +5,7 @@ AS = $(CROSS)as CC = $(CROSS)gcc LD = $(CROSS)ld OBJCOPY = $(CROSS)objcopy -CFLAGS = -O3 -Wall -Wextra -mno-vsx +CFLAGS = -O3 -Wall -Wextra -mno-vsx -mno-altivec AFLAGS ?= -mpwr9 @@ -37,3 +37,5 @@ tests: $(OBJ) ls -altr chacha20.sh ./chacha20.sh $$i $$DUMP$$i || exit 1; +clean: + rm $(OBJ) $(OBJECTS) diff --git a/crypto/chacha20/src/xchacha20.c b/crypto/chacha20/src/xchacha20.c index aa9c9043..2b29f60b 100644 --- a/crypto/chacha20/src/xchacha20.c +++ b/crypto/chacha20/src/xchacha20.c @@ -130,8 +130,6 @@ void xchacha_encrypt_bytes(XChaCha_ctx *ctx, const uint8_t *m, uint8_t *c, uint3 uint8_t tmp[64]; uint32_t i; - return; - if (!bytes) return; j0 = ctx->input[0];