[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 13/18] tests/tcg: add vectorised sha512 versions
From: |
Alex Bennée |
Subject: |
Re: [PATCH v2 13/18] tests/tcg: add vectorised sha512 versions |
Date: |
Mon, 28 Feb 2022 16:43:28 +0000 |
User-agent: |
mu4e 1.7.9; emacs 28.0.91 |
Alex Bennée <alex.bennee@linaro.org> writes:
> Richard Henderson <richard.henderson@linaro.org> writes:
>
>> On 2/25/22 07:20, Alex Bennée wrote:
>>> +++ b/tests/tcg/i386/Makefile.target
>>> @@ -71,3 +71,9 @@ TESTS=$(MULTIARCH_TESTS) $(I386_TESTS)
>>> # On i386 and x86_64 Linux only supports 4k pages (large pages
>>> are a different hack)
>>> EXTRA_RUNS+=run-test-mmap-4096
>>> +
>>> +sha512-sse: CFLAGS=-msse4.1 -O3
>>> +sha512-sse: sha512.c
>>> + $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS)
>>> +
>>> +TESTS+=sha512-sse
>>
>> The default cpu, qemu32, only implements sse3, not sse4.1, so we get a
>> guest SIGILL. We can execute this with -cpu max, or we could limit
>> the vectorization.
>
> OK I'll add:
>
> run-sha512-vector: QEMU_OPTS+=-cpu max
>
> TESTS+=sha512-sse
Or you know something that will actually work :-/
sha512-sse: CFLAGS=-msse4.1 -O3
sha512-sse: sha512.c
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS)
run-sha512-sse: QEMU_OPTS+=-cpu max
run-plugin-sha512-sse-with-%: QEMU_OPTS+=-cpu max
TESTS+=sha512-sse
>
>>
>>
>> r~
--
Alex Bennée
- Re: [PATCH v2 03/18] tests/lcitool: update to latest version, (continued)
[PATCH v2 18/18] tests/tcg: port SYS_HEAPINFO to a system test, Alex Bennée, 2022/02/25
[PATCH v2 11/18] tests/tcg: build sha1-vector with O3 and compare, Alex Bennée, 2022/02/25
[PATCH v2 14/18] travis.yml: Update the s390x jobs to Ubuntu Focal, Alex Bennée, 2022/02/25
[PATCH v2 13/18] tests/tcg: add vectorised sha512 versions, Alex Bennée, 2022/02/25
Re: [PATCH v2 13/18] tests/tcg: add vectorised sha512 versions, Richard Henderson, 2022/02/28
[PATCH v2 12/18] tests/tcg: add sha512 test, Alex Bennée, 2022/02/25
[PATCH v2 17/18] semihosting/arm-compat: replace heuristic for softmmu SYS_HEAPINFO, Alex Bennée, 2022/02/25
[PATCH v2 15/18] gitlab: upgrade the job definition for s390x to 20.04, Alex Bennée, 2022/02/25
[PATCH v2 16/18] tests/tcg: completely disable threadcount for sh4, Alex Bennée, 2022/02/25