From f45de47c59680c57939cdc55952afcebf2e90bfe Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Thu, 20 Sep 2018 02:55:28 +0000 Subject: [WebAssembly] Renumber SIMD ops Summary: This change leaves holes in the opcode space where missing instructions could logically be added later if they were found to be useful. Reviewers: aheejin, dschuff Subscribers: sbc100, jgravelle-google, sunfish, llvm-commits Differential Revision: https://reviews.llvm.org/D52282 llvm-svn: 342610 --- .../lib/Target/WebAssembly/WebAssemblyInstrSIMD.td | 70 +++++++++++----------- 1 file changed, 35 insertions(+), 35 deletions(-) (limited to 'llvm/lib/Target/WebAssembly') diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td index 57d94668703..9fe96ddb77a 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td +++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td @@ -184,7 +184,7 @@ multiclass SIMDNot { (vec_t (splat_pat (lane_t -1))) )) )], - "v128.not\t$dst, $vec", "v128.not", 62>; + "v128.not\t$dst, $vec", "v128.not", 63>; } multiclass SIMDCondition simdop> { @@ -317,30 +317,30 @@ defm SHUFFLE_v16i8 : let isCommutable = 1 in { defm ADD : SIMDBinaryInt; -defm ADD : SIMDBinaryFP; +defm ADD : SIMDBinaryFP; defm MUL : SIMDBinaryIntNoI64x2; -defm MUL : SIMDBinaryFP; +defm MUL : SIMDBinaryFP; } // isCommutable = 1 defm SUB : SIMDBinaryInt; -defm SUB : SIMDBinaryFP; -defm DIV : SIMDBinaryFP; +defm SUB : SIMDBinaryFP; +defm DIV : SIMDBinaryFP; -defm "" : SIMDNegInt; -defm "" : SIMDNegInt; -defm "" : SIMDNegInt; -defm "" : SIMDNegInt; -defm "" : SIMDNegFP; -defm "" : SIMDNegFP; +defm "" : SIMDNegInt; +defm "" : SIMDNegInt; +defm "" : SIMDNegInt; +defm "" : SIMDNegInt; +defm "" : SIMDNegFP; +defm "" : SIMDNegFP; -defm SHL : SIMDShiftInt; -defm SHR_S : SIMDShiftInt; -defm SHR_U : SIMDShiftInt; +defm SHL : SIMDShiftInt; +defm SHR_S : SIMDShiftInt; +defm SHR_U : SIMDShiftInt; let isCommutable = 1 in { -defm AND : SIMDBitwise; -defm OR : SIMDBitwise; -defm XOR : SIMDBitwise; +defm AND : SIMDBitwise; +defm OR : SIMDBitwise; +defm XOR : SIMDBitwise; } // isCommutable = 1 defm "" : SIMDNot; @@ -349,27 +349,27 @@ defm "" : SIMDNot; defm "" : SIMDNot; let isCommutable = 1 in { -defm EQ : SIMDConditionInt<"eq", SETEQ, 72>; -defm EQ : SIMDConditionFP<"eq", SETOEQ, 75>; -defm NE : SIMDConditionInt<"ne", SETNE, 77>; -defm NE : SIMDConditionFP<"ne", SETUNE, 80>; +defm EQ : SIMDConditionInt<"eq", SETEQ, 73>; +defm EQ : SIMDConditionFP<"eq", SETOEQ, 77>; +defm NE : SIMDConditionInt<"ne", SETNE, 79>; +defm NE : SIMDConditionFP<"ne", SETUNE, 83>; } // isCommutable = 1 -defm LT_S : SIMDConditionInt<"lt_s", SETLT, 82, 2>; -defm LT_U : SIMDConditionInt<"lt_u", SETULT, 83, 2>; -defm LT : SIMDConditionFP<"lt", SETOLT, 88>; -defm LE_S : SIMDConditionInt<"le_s", SETLE, 90, 2>; -defm LE_U : SIMDConditionInt<"le_u", SETULE, 91, 2>; -defm LE : SIMDConditionFP<"le", SETOLE, 96>; -defm GT_S : SIMDConditionInt<"gt_s", SETGT, 98, 2>; -defm GT_U : SIMDConditionInt<"gt_u", SETUGT, 99, 2>; -defm GT : SIMDConditionFP<"gt", SETOGT, 104>; -defm GE_S : SIMDConditionInt<"ge_s", SETGE, 106, 2>; -defm GE_U : SIMDConditionInt<"ge_u", SETUGE, 107, 2>; -defm GE : SIMDConditionFP<"ge", SETOGE, 112>; +defm LT_S : SIMDConditionInt<"lt_s", SETLT, 85, 2>; +defm LT_U : SIMDConditionInt<"lt_u", SETULT, 86, 2>; +defm LT : SIMDConditionFP<"lt", SETOLT, 93>; +defm LE_S : SIMDConditionInt<"le_s", SETLE, 95, 2>; +defm LE_U : SIMDConditionInt<"le_u", SETULE, 96, 2>; +defm LE : SIMDConditionFP<"le", SETOLE, 103>; +defm GT_S : SIMDConditionInt<"gt_s", SETGT, 105, 2>; +defm GT_U : SIMDConditionInt<"gt_u", SETUGT, 106, 2>; +defm GT : SIMDConditionFP<"gt", SETOGT, 113>; +defm GE_S : SIMDConditionInt<"ge_s", SETGE, 115, 2>; +defm GE_U : SIMDConditionInt<"ge_u", SETUGE, 116, 2>; +defm GE : SIMDConditionFP<"ge", SETOGE, 123>; -defm "" : SIMDAbs; -defm "" : SIMDAbs; +defm "" : SIMDAbs; +defm "" : SIMDAbs; } // Defs = [ARGUMENTS] -- cgit v1.2.3