@@ -778,24 +778,56 @@ switch (op[0]) {
778778 case ' t' : {
779779 switch (op[10 ]) {
780780 case ' s' : {
781- switch (op[13 ]) {
782- case ' 3' :
783- if (strcmp (op, " i32.trunc_s/f32" ) == 0 ) return makeUnary (s, UnaryOp::TruncSFloat32ToInt32);
784- goto parse_error;
785- case ' 6' :
786- if (strcmp (op, " i32.trunc_s/f64" ) == 0 ) return makeUnary (s, UnaryOp::TruncSFloat64ToInt32);
787- goto parse_error;
781+ switch (op[11 ]) {
782+ case ' /' : {
783+ switch (op[13 ]) {
784+ case ' 3' :
785+ if (strcmp (op, " i32.trunc_s/f32" ) == 0 ) return makeUnary (s, UnaryOp::TruncSFloat32ToInt32);
786+ goto parse_error;
787+ case ' 6' :
788+ if (strcmp (op, " i32.trunc_s/f64" ) == 0 ) return makeUnary (s, UnaryOp::TruncSFloat64ToInt32);
789+ goto parse_error;
790+ default : goto parse_error;
791+ }
792+ }
793+ case ' :' : {
794+ switch (op[17 ]) {
795+ case ' 3' :
796+ if (strcmp (op, " i32.trunc_s:sat/f32" ) == 0 ) return makeUnary (s, UnaryOp::TruncSatSFloat32ToInt32);
797+ goto parse_error;
798+ case ' 6' :
799+ if (strcmp (op, " i32.trunc_s:sat/f64" ) == 0 ) return makeUnary (s, UnaryOp::TruncSatSFloat64ToInt32);
800+ goto parse_error;
801+ default : goto parse_error;
802+ }
803+ }
788804 default : goto parse_error;
789805 }
790806 }
791807 case ' u' : {
792- switch (op[13 ]) {
793- case ' 3' :
794- if (strcmp (op, " i32.trunc_u/f32" ) == 0 ) return makeUnary (s, UnaryOp::TruncUFloat32ToInt32);
795- goto parse_error;
796- case ' 6' :
797- if (strcmp (op, " i32.trunc_u/f64" ) == 0 ) return makeUnary (s, UnaryOp::TruncUFloat64ToInt32);
798- goto parse_error;
808+ switch (op[11 ]) {
809+ case ' /' : {
810+ switch (op[13 ]) {
811+ case ' 3' :
812+ if (strcmp (op, " i32.trunc_u/f32" ) == 0 ) return makeUnary (s, UnaryOp::TruncUFloat32ToInt32);
813+ goto parse_error;
814+ case ' 6' :
815+ if (strcmp (op, " i32.trunc_u/f64" ) == 0 ) return makeUnary (s, UnaryOp::TruncUFloat64ToInt32);
816+ goto parse_error;
817+ default : goto parse_error;
818+ }
819+ }
820+ case ' :' : {
821+ switch (op[17 ]) {
822+ case ' 3' :
823+ if (strcmp (op, " i32.trunc_u:sat/f32" ) == 0 ) return makeUnary (s, UnaryOp::TruncSatUFloat32ToInt32);
824+ goto parse_error;
825+ case ' 6' :
826+ if (strcmp (op, " i32.trunc_u:sat/f64" ) == 0 ) return makeUnary (s, UnaryOp::TruncSatUFloat64ToInt32);
827+ goto parse_error;
828+ default : goto parse_error;
829+ }
830+ }
799831 default : goto parse_error;
800832 }
801833 }
@@ -1275,24 +1307,56 @@ switch (op[0]) {
12751307 case ' t' : {
12761308 switch (op[10 ]) {
12771309 case ' s' : {
1278- switch (op[13 ]) {
1279- case ' 3' :
1280- if (strcmp (op, " i64.trunc_s/f32" ) == 0 ) return makeUnary (s, UnaryOp::TruncSFloat32ToInt64);
1281- goto parse_error;
1282- case ' 6' :
1283- if (strcmp (op, " i64.trunc_s/f64" ) == 0 ) return makeUnary (s, UnaryOp::TruncSFloat64ToInt64);
1284- goto parse_error;
1310+ switch (op[11 ]) {
1311+ case ' /' : {
1312+ switch (op[13 ]) {
1313+ case ' 3' :
1314+ if (strcmp (op, " i64.trunc_s/f32" ) == 0 ) return makeUnary (s, UnaryOp::TruncSFloat32ToInt64);
1315+ goto parse_error;
1316+ case ' 6' :
1317+ if (strcmp (op, " i64.trunc_s/f64" ) == 0 ) return makeUnary (s, UnaryOp::TruncSFloat64ToInt64);
1318+ goto parse_error;
1319+ default : goto parse_error;
1320+ }
1321+ }
1322+ case ' :' : {
1323+ switch (op[17 ]) {
1324+ case ' 3' :
1325+ if (strcmp (op, " i64.trunc_s:sat/f32" ) == 0 ) return makeUnary (s, UnaryOp::TruncSatSFloat32ToInt64);
1326+ goto parse_error;
1327+ case ' 6' :
1328+ if (strcmp (op, " i64.trunc_s:sat/f64" ) == 0 ) return makeUnary (s, UnaryOp::TruncSatSFloat64ToInt64);
1329+ goto parse_error;
1330+ default : goto parse_error;
1331+ }
1332+ }
12851333 default : goto parse_error;
12861334 }
12871335 }
12881336 case ' u' : {
1289- switch (op[13 ]) {
1290- case ' 3' :
1291- if (strcmp (op, " i64.trunc_u/f32" ) == 0 ) return makeUnary (s, UnaryOp::TruncUFloat32ToInt64);
1292- goto parse_error;
1293- case ' 6' :
1294- if (strcmp (op, " i64.trunc_u/f64" ) == 0 ) return makeUnary (s, UnaryOp::TruncUFloat64ToInt64);
1295- goto parse_error;
1337+ switch (op[11 ]) {
1338+ case ' /' : {
1339+ switch (op[13 ]) {
1340+ case ' 3' :
1341+ if (strcmp (op, " i64.trunc_u/f32" ) == 0 ) return makeUnary (s, UnaryOp::TruncUFloat32ToInt64);
1342+ goto parse_error;
1343+ case ' 6' :
1344+ if (strcmp (op, " i64.trunc_u/f64" ) == 0 ) return makeUnary (s, UnaryOp::TruncUFloat64ToInt64);
1345+ goto parse_error;
1346+ default : goto parse_error;
1347+ }
1348+ }
1349+ case ' :' : {
1350+ switch (op[17 ]) {
1351+ case ' 3' :
1352+ if (strcmp (op, " i64.trunc_u:sat/f32" ) == 0 ) return makeUnary (s, UnaryOp::TruncSatUFloat32ToInt64);
1353+ goto parse_error;
1354+ case ' 6' :
1355+ if (strcmp (op, " i64.trunc_u:sat/f64" ) == 0 ) return makeUnary (s, UnaryOp::TruncSatUFloat64ToInt64);
1356+ goto parse_error;
1357+ default : goto parse_error;
1358+ }
1359+ }
12961360 default : goto parse_error;
12971361 }
12981362 }
0 commit comments