Mercurial > hg > truffle
diff src/cpu/x86/vm/assembler_x86.cpp @ 8042:91a23b11d8dc
8007708: compiler/6855215 assert(VM_Version::supports_sse4_2())
Summary: Added missing UseSSE42 check. Also added missing avx2 assert for vpermq instruction.
Reviewed-by: roland, twisti
author | kvn |
---|---|
date | Fri, 08 Feb 2013 15:07:17 -0800 |
parents | 8391fdd36e1f |
children | 5fc51c1ecdeb cc32ccaaf47f |
line wrap: on
line diff
--- a/src/cpu/x86/vm/assembler_x86.cpp Fri Feb 08 08:16:00 2013 -0800 +++ b/src/cpu/x86/vm/assembler_x86.cpp Fri Feb 08 15:07:17 2013 -0800 @@ -2270,10 +2270,11 @@ } void Assembler::vpermq(XMMRegister dst, XMMRegister src, int imm8, bool vector256) { - int encode = simd_prefix_and_encode(dst, xnoreg, src, VEX_SIMD_66, VEX_OPCODE_0F_3A, true, vector256); - emit_int8(0x00); - emit_int8(0xC0 | encode); - emit_int8(imm8); + assert(VM_Version::supports_avx2(), ""); + int encode = simd_prefix_and_encode(dst, xnoreg, src, VEX_SIMD_66, VEX_OPCODE_0F_3A, true, vector256); + emit_int8(0x00); + emit_int8(0xC0 | encode); + emit_int8(imm8); } void Assembler::pcmpestri(XMMRegister dst, Address src, int imm8) {