Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
update stage0, map bool_I and isbig_I, add bool_I's tests
moritz++
  • Loading branch information
FROGGS committed Oct 13, 2013
1 parent 0cde6db commit 72427c7
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vm/moar/QAST/QASTOperationsMAST.nqp
Expand Up @@ -1526,6 +1526,7 @@ QAST::MASTOperations.add_core_moarop_mapping('floor_n', 'floor_n');
QAST::MASTOperations.add_core_moarop_mapping('ln_n', 'log_n'); # looks like this one is never used
QAST::MASTOperations.add_core_moarop_mapping('sqrt_n', 'sqrt_n');
QAST::MASTOperations.add_core_moarop_mapping('base_I', 'base_I');
QAST::MASTOperations.add_core_moarop_mapping('isbig_I', 'isbig_I');
QAST::MASTOperations.add_core_moarop_mapping('radix', 'radix');
QAST::MASTOperations.add_core_moarop_mapping('radix_I', 'radix_I');
QAST::MASTOperations.add_core_moarop_mapping('log_n', 'log_n');
Expand Down Expand Up @@ -1674,6 +1675,7 @@ QAST::MASTOperations.add_core_moarop_mapping('isle_s', 'le_s');
QAST::MASTOperations.add_core_moarop_mapping('isgt_s', 'gt_s');
QAST::MASTOperations.add_core_moarop_mapping('isge_s', 'ge_s');

QAST::MASTOperations.add_core_moarop_mapping('bool_I', 'bool_I');
QAST::MASTOperations.add_core_moarop_mapping('cmp_I', 'cmp_I');
QAST::MASTOperations.add_core_moarop_mapping('iseq_I', 'eq_I');
QAST::MASTOperations.add_core_moarop_mapping('isne_I', 'ne_I');
Expand Down
Binary file modified src/vm/moar/stage0/ModuleLoader.moarvm
Binary file not shown.
Binary file modified src/vm/moar/stage0/NQPCOREMoar.setting.moarvm
Binary file not shown.
Binary file modified src/vm/moar/stage0/NQPHLLMoar.moarvm
Binary file not shown.
Binary file modified src/vm/moar/stage0/NQPP6QRegexMoar.moarvm
Binary file not shown.
Binary file modified src/vm/moar/stage0/QASTMoar.moarvm
Binary file not shown.
Binary file modified src/vm/moar/stage0/QASTNodesMoar.moarvm
Binary file not shown.
Binary file modified src/vm/moar/stage0/QRegexMoar.moarvm
Binary file not shown.
Binary file modified src/vm/moar/stage0/nqp-mo.moarvm
Binary file not shown.
Binary file modified src/vm/moar/stage0/nqp.moarvm
Binary file not shown.
3 changes: 3 additions & 0 deletions t/nqp/60-bigint.t
Expand Up @@ -121,3 +121,6 @@ ok(nqp::isprime_I(box(17), 1) == 1, 'is 17 prime');

ok(nqp::iseq_I(nqp::gcd_I(box(18), box(12), $bi_type), box(6)), 'nqp::gcd_I');
ok(nqp::iseq_I(nqp::lcm_I(box(18), box(12), $bi_type), box(36)), 'nqp::lcm_I');

ok(nqp::bool_I(box(42)), 'bool_I(42)');
ok(!nqp::bool_I(box(0)), 'bool_I(0)');

0 comments on commit 72427c7

Please sign in to comment.