| Index: runtime/vm/intermediate_language.h
|
| diff --git a/runtime/vm/intermediate_language.h b/runtime/vm/intermediate_language.h
|
| index 096aff73e459a3b8c6149d80467b28892019cd6f..efac3f5feca0c86341bc5c78a3fbec5394f7b82b 100644
|
| --- a/runtime/vm/intermediate_language.h
|
| +++ b/runtime/vm/intermediate_language.h
|
| @@ -94,6 +94,7 @@ class Range;
|
| V(_Float32x4, get:y, Float32x4ShuffleY, 710282243) \
|
| V(_Float32x4, get:z, Float32x4ShuffleZ, 1612806041) \
|
| V(_Float32x4, get:w, Float32x4ShuffleW, 1113701403) \
|
| + V(_Float32x4, get:signMask, Float32x4GetSignMask, 465347632) \
|
| V(_Float32x4, _cmpequal, Float32x4Equal, 1559121703) \
|
| V(_Float32x4, _cmpgt, Float32x4GreaterThan, 1959692892) \
|
| V(_Float32x4, _cmpgte, Float32x4GreaterThanOrEqual, 2128251808) \
|
| @@ -613,6 +614,7 @@ class EmbeddedArray<T, 0> {
|
| M(IfThenElse) \
|
| M(BinaryFloat32x4Op) \
|
| M(Float32x4Shuffle) \
|
| + M(Float32x4GetSignMask) \
|
| M(Float32x4Constructor) \
|
| M(Float32x4Zero) \
|
| M(Float32x4Splat) \
|
| @@ -902,6 +904,7 @@ FOR_EACH_INSTRUCTION(INSTRUCTION_TYPE_CHECK)
|
| friend class Float32x4ZeroInstr;
|
| friend class Float32x4SplatInstr;
|
| friend class Float32x4ShuffleInstr;
|
| + friend class Float32x4GetSignMaskInstr;
|
| friend class Float32x4ConstructorInstr;
|
| friend class Float32x4ComparisonInstr;
|
| friend class Float32x4MinMaxInstr;
|
| @@ -5527,6 +5530,51 @@ class Uint32x4GetFlagInstr : public TemplateDefinition<1> {
|
| };
|
|
|
|
|
| +class Float32x4GetSignMaskInstr : public TemplateDefinition<1> {
|
| + public:
|
| + Float32x4GetSignMaskInstr(Value* value, intptr_t deopt_id) {
|
| + SetInputAt(0, value);
|
| + deopt_id_ = deopt_id;
|
| + }
|
| +
|
| + Value* value() const { return inputs_[0]; }
|
| +
|
| + virtual void PrintOperandsTo(BufferFormatter* f) const;
|
| +
|
| + virtual bool CanDeoptimize() const { return false; }
|
| +
|
| + virtual Representation representation() const {
|
| + return kTagged;
|
| + }
|
| +
|
| + virtual Representation RequiredInputRepresentation(intptr_t idx) const {
|
| + ASSERT(idx == 0);
|
| + return kUnboxedFloat32x4;
|
| + }
|
| +
|
| + virtual intptr_t DeoptimizationTarget() const {
|
| + // Direct access since this instruction cannot deoptimize, and the deopt-id
|
| + // was inherited from another instruction that could deoptimize.
|
| + return deopt_id_;
|
| + }
|
| +
|
| + DECLARE_INSTRUCTION(Float32x4GetSignMask)
|
| + virtual CompileType ComputeType() const;
|
| +
|
| + virtual bool AllowsCSE() const { return true; }
|
| + virtual EffectSet Effects() const { return EffectSet::None(); }
|
| + virtual EffectSet Dependencies() const { return EffectSet::None(); }
|
| + virtual bool AttributesEqual(Instruction* other) const {
|
| + return true;
|
| + }
|
| +
|
| + virtual bool MayThrow() const { return false; }
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(Float32x4GetSignMaskInstr);
|
| +};
|
| +
|
| +
|
| class Float32x4TwoArgShuffleInstr : public TemplateDefinition<2> {
|
| public:
|
| Float32x4TwoArgShuffleInstr(MethodRecognizer::Kind op_kind, Value* left,
|
|
|