[x64] Remove usage of xbyak_bin2hex.h

C++ has had binary-literals since C++14. There is no need for these
binary enum values from xbyak.
This commit is contained in:
Wunkolo 2022-02-03 14:21:59 -08:00 committed by Rick Gibbed
parent f356cf5df8
commit c1de37f381
2 changed files with 6 additions and 7 deletions

View File

@ -22,7 +22,6 @@
// NOTE: must be included last as it expects windows.h to already be included.
#include "third_party/xbyak/xbyak/xbyak.h"
#include "third_party/xbyak/xbyak/xbyak_bin2hex.h"
#include "third_party/xbyak/xbyak/xbyak_util.h"
namespace xe {

View File

@ -7,7 +7,6 @@
******************************************************************************
*/
#include "third_party/xbyak/xbyak/xbyak_bin2hex.h"
#include "xenia/cpu/testing/util.h"
using namespace xe;
@ -23,16 +22,17 @@ TEST_CASE("VECTOR_ROTATE_LEFT_I8", "[instr]") {
});
test.Run(
[](PPCContext* ctx) {
ctx->v[4] = vec128b(B00000001);
ctx->v[4] = vec128b(0b00000001);
ctx->v[5] =
vec128b(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
},
[](PPCContext* ctx) {
auto result = ctx->v[3];
REQUIRE(result == vec128b(B00000001, B00000010, B00000100, B00001000,
B00010000, B00100000, B01000000, B10000000,
B00000001, B00000010, B00000100, B00001000,
B00010000, B00100000, B01000000, B10000000));
REQUIRE(result ==
vec128b(0b00000001, 0b00000010, 0b00000100, 0b00001000,
0b00010000, 0b00100000, 0b01000000, 0b10000000,
0b00000001, 0b00000010, 0b00000100, 0b00001000,
0b00010000, 0b00100000, 0b01000000, 0b10000000));
});
}