Add backend-specific skips for bitreverse, byteswap tests

This commit is contained in:
Cody Tapscott
2022-02-15 10:45:25 -07:00
parent fe1d6c2f56
commit db80dff4e0
4 changed files with 21 additions and 8 deletions

View File

@@ -4390,7 +4390,7 @@ pub const FuncGen = struct {
var operand_llvm_ty = try self.dg.llvmType(operand_ty);
if (bits % 16 == 8) {
// If not an even byte-multiple, we need zero-extend + shift-left 1 byte
// If not an even byte-multiple, we need zero-extend + shift-left 1 byte
// The truncated result at the end will be the correct bswap
operand_llvm_ty = self.context.intType(bits + 8);
const extended = self.builder.buildZExt(operand, operand_llvm_ty, "");