Skip to content

Instantly share code, notes, and snippets.

@timo
Created April 19, 2018 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timo/1ea6c284dab832a7dab9e7f3ac6905ec to your computer and use it in GitHub Desktop.
Save timo/1ea6c284dab832a7dab9e7f3ac6905ec to your computer and use it in GitHub Desktop.
+ case MVM_OP_if_s:
+ case MVM_OP_unless_s:
+ | mov TMP1, WORK[val];
+ | test TMP1, TMP1;
+ /* Switched around compared to below */
+ if (ins->info->opcode == MVM_OP_unless_s)
+ | jz =>(name);
+ else
+ | jz =>2;
+ | mov ARG1, TC;
+ | mov ARG2, WORK[val];
+ | callp &MVM_string_graphs;
+ | test RV, RV;
+ if (ins->info->opcode == MVM_OP_unless_s)
+ | jz =>(name);
+ else
+ | jnz =>(name);
+ |2:
+ break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment