]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
tests/sys/kern/crc32: Check for SSE4.2 before using it
authorAlex Richardson <arichardson@FreeBSD.org>
Tue, 2 Feb 2021 09:52:52 +0000 (09:52 +0000)
committerAlex Richardson <arichardson@FreeBSD.org>
Thu, 22 Apr 2021 09:41:09 +0000 (10:41 +0100)
commitb20f358a2de4fa442e8650f78187ad19764c7db8
tree96ba938c3c4be5dce75cf7c8486386c5bf63859b
parent76713be0f593d7b6cea0696024b804888a61547a
tests/sys/kern/crc32: Check for SSE4.2 before using it

This avoids a SIGILL when running these tests on QEMU (which
defaults to a basic amd64 CPU without SSE4.2).

This commit also tests the table-based implementations in addition to
testing the hw-accelerated crc32 versions.

Reviewed By: cem, kib, markj
Differential Revision: https://reviews.freebsd.org/D28395

(cherry picked from commit 83c20b8a2da04937cf4af127366b3dc92c855784)
sys/libkern/gsb_crc32.c
sys/sys/gsb_crc32.h
tests/sys/kern/Makefile
tests/sys/kern/libkern_crc32.c