Squashed 'external/xbyak/' content from commit 431abd86
git-subtree-dir: external/xbyak git-subtree-split: 431abd865e70a46d56f5aa0e1f87572decb60169
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user