Files
rc64/test/test_by_xed.cpp
Simone Coco 0a097849af Squashed 'external/xbyak/' content from commit 9d8ff37
git-subtree-dir: external/xbyak
git-subtree-split: 9d8ff37306f39c6a71cf998078cbe880ce5dc224
2025-12-23 16:51:03 +01:00

28 lines
434 B
C++

#include <stdio.h>
#include <xbyak/xbyak.h>
using namespace Xbyak;
struct Code : Xbyak::CodeGenerator {
Code()
: Xbyak::CodeGenerator(4096*8)
{
setDefaultEncodingAVX10(AVX10v2Encoding);
#include "tmp.cpp"
}
};
int main()
try
{
Code c;
FILE *fp = fopen("bin", "wb");
if (fp) {
fwrite(c.getCode(), 1, c.getSize(), fp);
fclose(fp);
}
} catch (std::exception& e) {
printf("ERR %s\n", e.what());
return 1;
}