WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

Commit 884761cd authored by John Zhang's avatar John Zhang
Browse files

fix sext and zext test constant size mistake

parent 6eaefbba
......@@ -7,43 +7,43 @@
#include "muapi.h"
#include "mu-fastimpl.h"
int main(int argc, char** argv) {
MuVM* mu_20;
MuCtx* ctx_20;
MuIRBuilder* bldr_20;
MuID id_242;
MuID id_243;
MuID id_244;
MuID id_245;
MuID id_246;
MuID id_247;
MuID id_248;
MuID id_249;
MuID id_250;
MuID id_251;
mu_20 = mu_fastimpl_new();
ctx_20 = mu_20->new_context(mu_20);
bldr_20 = ctx_20->new_ir_builder(ctx_20);
id_242 = bldr_20->gen_sym(bldr_20, "@i32");
bldr_20->new_type_int(bldr_20, id_242, 32);
id_243 = bldr_20->gen_sym(bldr_20, "@i64");
bldr_20->new_type_int(bldr_20, id_243, 64);
id_244 = bldr_20->gen_sym(bldr_20, "@0xa8324b55_i32");
bldr_20->new_const_int(bldr_20, id_244, id_243, 2821868373);
id_245 = bldr_20->gen_sym(bldr_20, "@sig__i64");
bldr_20->new_funcsig(bldr_20, id_245, NULL, 0, (MuTypeNode [1]){id_243}, 1);
id_246 = bldr_20->gen_sym(bldr_20, "@test_fnc");
bldr_20->new_func(bldr_20, id_246, id_245);
id_247 = bldr_20->gen_sym(bldr_20, "@test_fnc_v1");
id_248 = bldr_20->gen_sym(bldr_20, "@test_fnc_v1.blk0");
id_249 = bldr_20->gen_sym(bldr_20, "@test_fnc_v1.blk0.res");
id_250 = bldr_20->gen_sym(bldr_20, NULL);
bldr_20->new_conv(bldr_20, id_250, id_249, MU_CONV_SEXT, id_242, id_243, id_244);
id_251 = bldr_20->gen_sym(bldr_20, NULL);
bldr_20->new_ret(bldr_20, id_251, (MuVarNode [1]){id_249}, 1);
bldr_20->new_bb(bldr_20, id_248, NULL, NULL, 0, MU_NO_ID, (MuInstNode [2]){id_250, id_251}, 2);
bldr_20->new_func_ver(bldr_20, id_247, id_246, (MuBBNode [1]){id_248}, 1);
mu_20->compile_to_sharedlib(mu_20, "test_sext.dylib", NULL, 0);
MuVM* mu_24;
MuCtx* ctx_24;
MuIRBuilder* bldr_24;
MuID id_312;
MuID id_313;
MuID id_314;
MuID id_315;
MuID id_316;
MuID id_317;
MuID id_318;
MuID id_319;
MuID id_320;
MuID id_321;
mu_24 = mu_fastimpl_new();
ctx_24 = mu_24->new_context(mu_24);
bldr_24 = ctx_24->new_ir_builder(ctx_24);
id_312 = bldr_24->gen_sym(bldr_24, "@i32");
bldr_24->new_type_int(bldr_24, id_312, 32);
id_313 = bldr_24->gen_sym(bldr_24, "@i64");
bldr_24->new_type_int(bldr_24, id_313, 64);
id_314 = bldr_24->gen_sym(bldr_24, "@0xa8324b55_i32");
bldr_24->new_const_int(bldr_24, id_314, id_312, 2821868373);
id_315 = bldr_24->gen_sym(bldr_24, "@sig__i64");
bldr_24->new_funcsig(bldr_24, id_315, NULL, 0, (MuTypeNode [1]){id_313}, 1);
id_316 = bldr_24->gen_sym(bldr_24, "@test_fnc");
bldr_24->new_func(bldr_24, id_316, id_315);
id_317 = bldr_24->gen_sym(bldr_24, "@test_fnc_v1");
id_318 = bldr_24->gen_sym(bldr_24, "@test_fnc_v1.blk0");
id_319 = bldr_24->gen_sym(bldr_24, "@test_fnc_v1.blk0.res");
id_320 = bldr_24->gen_sym(bldr_24, NULL);
bldr_24->new_conv(bldr_24, id_320, id_319, MU_CONV_SEXT, id_312, id_313, id_314);
id_321 = bldr_24->gen_sym(bldr_24, NULL);
bldr_24->new_ret(bldr_24, id_321, (MuVarNode [1]){id_319}, 1);
bldr_24->new_bb(bldr_24, id_318, NULL, NULL, 0, MU_NO_ID, (MuInstNode [2]){id_320, id_321}, 2);
bldr_24->new_func_ver(bldr_24, id_317, id_316, (MuBBNode [1]){id_318}, 1);
mu_24->compile_to_sharedlib(mu_24, "test_sext.dylib", NULL, 0);
printf("%s\n", "test_sext.dylib");
return 0;
......@@ -7,43 +7,43 @@
#include "muapi.h"
#include "mu-fastimpl.h"
int main(int argc, char** argv) {
MuVM* mu_21;
MuCtx* ctx_21;
MuIRBuilder* bldr_21;
MuID id_252;
MuID id_253;
MuID id_254;
MuID id_255;
MuID id_256;
MuID id_257;
MuID id_258;
MuID id_259;
MuID id_260;
MuID id_261;
mu_21 = mu_fastimpl_new();
ctx_21 = mu_21->new_context(mu_21);
bldr_21 = ctx_21->new_ir_builder(ctx_21);
id_252 = bldr_21->gen_sym(bldr_21, "@i32");
bldr_21->new_type_int(bldr_21, id_252, 32);
id_253 = bldr_21->gen_sym(bldr_21, "@i64");
bldr_21->new_type_int(bldr_21, id_253, 64);
id_254 = bldr_21->gen_sym(bldr_21, "@0xa8324b55_i32");
bldr_21->new_const_int(bldr_21, id_254, id_253, 2821868373);
id_255 = bldr_21->gen_sym(bldr_21, "@sig__i64");
bldr_21->new_funcsig(bldr_21, id_255, NULL, 0, (MuTypeNode [1]){id_253}, 1);
id_256 = bldr_21->gen_sym(bldr_21, "@test_fnc");
bldr_21->new_func(bldr_21, id_256, id_255);
id_257 = bldr_21->gen_sym(bldr_21, "@test_fnc_v1");
id_258 = bldr_21->gen_sym(bldr_21, "@test_fnc_v1.blk0");
id_259 = bldr_21->gen_sym(bldr_21, "@test_fnc_v1.blk0.res");
id_260 = bldr_21->gen_sym(bldr_21, NULL);
bldr_21->new_conv(bldr_21, id_260, id_259, MU_CONV_ZEXT, id_252, id_253, id_254);
id_261 = bldr_21->gen_sym(bldr_21, NULL);
bldr_21->new_ret(bldr_21, id_261, (MuVarNode [1]){id_259}, 1);
bldr_21->new_bb(bldr_21, id_258, NULL, NULL, 0, MU_NO_ID, (MuInstNode [2]){id_260, id_261}, 2);
bldr_21->new_func_ver(bldr_21, id_257, id_256, (MuBBNode [1]){id_258}, 1);
mu_21->compile_to_sharedlib(mu_21, "test_zext.dylib", NULL, 0);
MuVM* mu_25;
MuCtx* ctx_25;
MuIRBuilder* bldr_25;
MuID id_322;
MuID id_323;
MuID id_324;
MuID id_325;
MuID id_326;
MuID id_327;
MuID id_328;
MuID id_329;
MuID id_330;
MuID id_331;
mu_25 = mu_fastimpl_new();
ctx_25 = mu_25->new_context(mu_25);
bldr_25 = ctx_25->new_ir_builder(ctx_25);
id_322 = bldr_25->gen_sym(bldr_25, "@i32");
bldr_25->new_type_int(bldr_25, id_322, 32);
id_323 = bldr_25->gen_sym(bldr_25, "@i64");
bldr_25->new_type_int(bldr_25, id_323, 64);
id_324 = bldr_25->gen_sym(bldr_25, "@0xa8324b55_i32");
bldr_25->new_const_int(bldr_25, id_324, id_322, 2821868373);
id_325 = bldr_25->gen_sym(bldr_25, "@sig__i64");
bldr_25->new_funcsig(bldr_25, id_325, NULL, 0, (MuTypeNode [1]){id_323}, 1);
id_326 = bldr_25->gen_sym(bldr_25, "@test_fnc");
bldr_25->new_func(bldr_25, id_326, id_325);
id_327 = bldr_25->gen_sym(bldr_25, "@test_fnc_v1");
id_328 = bldr_25->gen_sym(bldr_25, "@test_fnc_v1.blk0");
id_329 = bldr_25->gen_sym(bldr_25, "@test_fnc_v1.blk0.res");
id_330 = bldr_25->gen_sym(bldr_25, NULL);
bldr_25->new_conv(bldr_25, id_330, id_329, MU_CONV_ZEXT, id_322, id_323, id_324);
id_331 = bldr_25->gen_sym(bldr_25, NULL);
bldr_25->new_ret(bldr_25, id_331, (MuVarNode [1]){id_329}, 1);
bldr_25->new_bb(bldr_25, id_328, NULL, NULL, 0, MU_NO_ID, (MuInstNode [2]){id_330, id_331}, 2);
bldr_25->new_func_ver(bldr_25, id_327, id_326, (MuBBNode [1]){id_328}, 1);
mu_25->compile_to_sharedlib(mu_25, "test_zext.dylib", NULL, 0);
printf("%s\n", "test_zext.dylib");
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment