ref: 83b854df0d2a98ca35f8d3215e7fe34531563b20
parent: ca10fccafe87bb3fe54d6ea8de36f16a03bbcbc2
author: aiju <devnull@localhost>
date: Fri Dec 28 05:26:25 EST 2018
dtracy: fix conditional branch generation
--- a/sys/src/cmd/dtracy/cgen.c
+++ b/sys/src/cmd/dtracy/cgen.c
@@ -85,10 +85,10 @@
if(n->type != OBIN) goto other;
switch(n->op){
- case OPEQ: op = DTE_SEQ; goto cmp;
- case OPNE: op = DTE_SNE; goto cmp;
- case OPLT: op = DTE_SLT; goto cmp;
- case OPLE: op = DTE_SLE;
+ case OPEQ: op = DTE_BEQ; goto cmp;
+ case OPNE: op = DTE_BNE; goto cmp;
+ case OPLT: op = DTE_BLT; goto cmp;
+ case OPLE: op = DTE_BLE;
cmp:
r1 = egen(n->n1);
r2 = egen(n->n2);