diff options
Diffstat (limited to 'contrib/llvm/lib/Target/WebAssembly/WebAssemblyInstrFloat.td')
-rw-r--r-- | contrib/llvm/lib/Target/WebAssembly/WebAssemblyInstrFloat.td | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/contrib/llvm/lib/Target/WebAssembly/WebAssemblyInstrFloat.td b/contrib/llvm/lib/Target/WebAssembly/WebAssemblyInstrFloat.td index 6456972..030be08 100644 --- a/contrib/llvm/lib/Target/WebAssembly/WebAssemblyInstrFloat.td +++ b/contrib/llvm/lib/Target/WebAssembly/WebAssemblyInstrFloat.td @@ -15,26 +15,26 @@ let Defs = [ARGUMENTS] in { let isCommutable = 1 in -defm ADD : BinaryFP<fadd, "add ">; -defm SUB : BinaryFP<fsub, "sub ">; +defm ADD : BinaryFP<fadd, "add ", 0x92, 0xa0>; +defm SUB : BinaryFP<fsub, "sub ", 0x93, 0xa1>; let isCommutable = 1 in -defm MUL : BinaryFP<fmul, "mul ">; -defm DIV : BinaryFP<fdiv, "div ">; -defm SQRT : UnaryFP<fsqrt, "sqrt">; +defm MUL : BinaryFP<fmul, "mul ", 0x94, 0xa2>; +defm DIV : BinaryFP<fdiv, "div ", 0x95, 0xa3>; +defm SQRT : UnaryFP<fsqrt, "sqrt", 0x91, 0x9f>; -defm ABS : UnaryFP<fabs, "abs ">; -defm NEG : UnaryFP<fneg, "neg ">; -defm COPYSIGN : BinaryFP<fcopysign, "copysign">; +defm ABS : UnaryFP<fabs, "abs ", 0x8b, 0x99>; +defm NEG : UnaryFP<fneg, "neg ", 0x8c, 0x9a>; +defm COPYSIGN : BinaryFP<fcopysign, "copysign", 0x98, 0xa6>; let isCommutable = 1 in { -defm MIN : BinaryFP<fminnan, "min ">; -defm MAX : BinaryFP<fmaxnan, "max ">; +defm MIN : BinaryFP<fminnan, "min ", 0x96, 0xa4>; +defm MAX : BinaryFP<fmaxnan, "max ", 0x97, 0xa5>; } // isCommutable = 1 -defm CEIL : UnaryFP<fceil, "ceil">; -defm FLOOR : UnaryFP<ffloor, "floor">; -defm TRUNC : UnaryFP<ftrunc, "trunc">; -defm NEAREST : UnaryFP<fnearbyint, "nearest">; +defm CEIL : UnaryFP<fceil, "ceil", 0x8d, 0x9b>; +defm FLOOR : UnaryFP<ffloor, "floor", 0x8e, 0x9c>; +defm TRUNC : UnaryFP<ftrunc, "trunc", 0x8f, 0x9d>; +defm NEAREST : UnaryFP<fnearbyint, "nearest", 0x90, 0x9e>; } // Defs = [ARGUMENTS] @@ -51,13 +51,13 @@ def : Pat<(frint f64:$src), (NEAREST_F64 f64:$src)>; let Defs = [ARGUMENTS] in { let isCommutable = 1 in { -defm EQ : ComparisonFP<SETOEQ, "eq ">; -defm NE : ComparisonFP<SETUNE, "ne ">; +defm EQ : ComparisonFP<SETOEQ, "eq ", 0x5b, 0x61>; +defm NE : ComparisonFP<SETUNE, "ne ", 0x5c, 0x62>; } // isCommutable = 1 -defm LT : ComparisonFP<SETOLT, "lt ">; -defm LE : ComparisonFP<SETOLE, "le ">; -defm GT : ComparisonFP<SETOGT, "gt ">; -defm GE : ComparisonFP<SETOGE, "ge ">; +defm LT : ComparisonFP<SETOLT, "lt ", 0x5d, 0x63>; +defm LE : ComparisonFP<SETOLE, "le ", 0x5e, 0x64>; +defm GT : ComparisonFP<SETOGT, "gt ", 0x5f, 0x65>; +defm GE : ComparisonFP<SETOGE, "ge ", 0x60, 0x66>; } // Defs = [ARGUMENTS] @@ -79,10 +79,10 @@ let Defs = [ARGUMENTS] in { def SELECT_F32 : I<(outs F32:$dst), (ins F32:$lhs, F32:$rhs, I32:$cond), [(set F32:$dst, (select I32:$cond, F32:$lhs, F32:$rhs))], - "f32.select\t$dst, $lhs, $rhs, $cond">; + "f32.select\t$dst, $lhs, $rhs, $cond", 0x1b>; def SELECT_F64 : I<(outs F64:$dst), (ins F64:$lhs, F64:$rhs, I32:$cond), [(set F64:$dst, (select I32:$cond, F64:$lhs, F64:$rhs))], - "f64.select\t$dst, $lhs, $rhs, $cond">; + "f64.select\t$dst, $lhs, $rhs, $cond", 0x1b>; } // Defs = [ARGUMENTS] |