s390x: Implement bitrev (#4617)

Since we do not have an instruction for this, this is a simple
open-coded implementation.

Needed by the cg_clif frontend.
This commit is contained in:
Ulrich Weigand
2022-08-05 01:24:55 +02:00
committed by GitHub
parent 42233e8eda
commit f552a53654
5 changed files with 193 additions and 33 deletions

View File

@@ -1,6 +1,7 @@
test interpret
test run
target aarch64
target s390x
target x86_64
function %bitrev_i8(i8) -> i8 {