# HG changeset patch # User Doug Masten # Date 1544502428 25200 # Node ID b9917c4dc6cf4855680f36891f52cdbfdb5e0114 # Parent 74d0c394666e3bd4d9408ff37ae2c7f0a583878a Fix cycle counts for asr, cmpe, cmpf and cmpw. diff -r 74d0c394666e -r b9917c4dc6cf lwasm/cycle.c --- a/lwasm/cycle.c Fri Nov 02 21:07:50 2018 -0600 +++ b/lwasm/cycle.c Mon Dec 10 21:27:08 2018 -0700 @@ -120,7 +120,7 @@ { 0x47, 2, 1, 0 }, // ASR { 0x57, 2, 1, 0 }, { 0x1047, 3, 2, 0 }, - { 0x07, 6, 6, 0 }, + { 0x07, 6, 5, 0 }, { 0x67, 6, 6, CYCLE_ADJ }, { 0x77, 7, 6, 0 }, @@ -192,15 +192,15 @@ { 0x10a3, 7, 6, CYCLE_ADJ }, { 0x10b3, 8, 6, 0 }, - { 0x1081, 3, 3, 0 }, // CMPE - { 0x1091, 5, 4, 0 }, - { 0x10a1, 5, 5, CYCLE_ADJ }, - { 0x10b1, 6, 5, 0 }, + { 0x1181, 3, 3, 0 }, // CMPE + { 0x1191, 5, 4, 0 }, + { 0x11a1, 5, 5, CYCLE_ADJ }, + { 0x11b1, 6, 5, 0 }, - { 0x10c1, 3, 3, 0 }, // CMPF - { 0x10d1, 5, 4, 0 }, - { 0x10e1, 5, 5, CYCLE_ADJ }, - { 0x10f1, 6, 5, 0 }, + { 0x11c1, 3, 3, 0 }, // CMPF + { 0x11d1, 5, 4, 0 }, + { 0x11e1, 5, 5, CYCLE_ADJ }, + { 0x11f1, 6, 5, 0 }, { 0x118c, 5, 4, 0 }, // CMPS { 0x119c, 7, 5, 0 }, @@ -212,10 +212,10 @@ { 0x11a3, 7, 6, CYCLE_ADJ }, { 0x11b3, 8, 6, 0 }, - { 0x1181, 5, 4, 0 }, // CMPW - { 0x1191, 7, 5, 0 }, - { 0x11a1, 7, 6, CYCLE_ADJ }, - { 0x11b1, 8, 6, 0 }, + { 0x1081, 5, 4, 0 }, // CMPW + { 0x1091, 7, 5, 0 }, + { 0x10a1, 7, 6, CYCLE_ADJ }, + { 0x10b1, 8, 6, 0 }, { 0x8c, 4, 3, 0 }, // CMPX { 0x9c, 6, 4, 0 },