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

@@ -104,6 +104,7 @@ impl LowerBackend for S390xBackend {
| Opcode::Bextend
| Opcode::Bmask
| Opcode::Bint
| Opcode::Bitrev
| Opcode::Clz
| Opcode::Cls
| Opcode::Ctz
@@ -198,8 +199,7 @@ impl LowerBackend for S390xBackend {
)
}
Opcode::Bitrev
| Opcode::ConstAddr
Opcode::ConstAddr
| Opcode::TlsValue
| Opcode::GetPinnedReg
| Opcode::SetPinnedReg