Index: src/ia32/codegen-ia32.h |
=================================================================== |
--- src/ia32/codegen-ia32.h (revision 2704) |
+++ src/ia32/codegen-ia32.h (working copy) |
@@ -618,6 +618,7 @@ |
OverwriteMode mode, |
GenericBinaryFlags flags) |
: op_(op), mode_(mode), flags_(flags) { |
+ use_sse3_ = CpuFeatures::IsSupported(CpuFeatures::SSE3); |
ASSERT(OpBits::is_valid(Token::NUM_TOKENS)); |
} |
@@ -627,6 +628,7 @@ |
Token::Value op_; |
OverwriteMode mode_; |
GenericBinaryFlags flags_; |
+ bool use_sse3_; |
const char* GetName(); |
@@ -639,9 +641,10 @@ |
} |
#endif |
- // Minor key encoding in 16 bits FOOOOOOOOOOOOOMM. |
+ // Minor key encoding in 16 bits FSOOOOOOOOOOOOMM. |
class ModeBits: public BitField<OverwriteMode, 0, 2> {}; |
- class OpBits: public BitField<Token::Value, 2, 13> {}; |
+ class OpBits: public BitField<Token::Value, 2, 12> {}; |
+ class SSE3Bits: public BitField<bool, 14, 1> {}; |
class FlagBits: public BitField<GenericBinaryFlags, 15, 1> {}; |
Major MajorKey() { return GenericBinaryOp; } |
@@ -649,7 +652,8 @@ |
// Encode the parameters in a unique 16 bit value. |
return OpBits::encode(op_) |
| ModeBits::encode(mode_) |
- | FlagBits::encode(flags_); |
+ | FlagBits::encode(flags_) |
+ | SSE3Bits::encode(use_sse3_); |
} |
void Generate(MacroAssembler* masm); |
}; |