File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -141,6 +141,10 @@ UNIT(x86_operand) {
141141 EXPECT_EQ (zmm7.ymm (), ymm7);
142142 EXPECT_EQ (zmm7.zmm (), zmm7);
143143
144+ EXPECT_EQ (xmm4.half (), xmm4);
145+ EXPECT_EQ (ymm4.half (), xmm4);
146+ EXPECT_EQ (zmm4.half (), ymm4);
147+
144148 INFO (" Checking x86::Mm register properties" );
145149 EXPECT_TRUE (Mm ().is_reg ());
146150 EXPECT_TRUE (mm2.is_reg ());
Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ class Vec : public UniVec {
237237 // ! was ZMM, or XMM for whatever else input.
238238 [[nodiscard]]
239239 ASMJIT_INLINE_CONSTEXPR Vec half () const noexcept {
240- return Vec (is_vec512 () ? signature_of_t <RegType::kVec256 >() : signature_of_t <RegType::kVec512 >(), id ());
240+ return Vec (is_vec512 () ? signature_of_t <RegType::kVec256 >() : signature_of_t <RegType::kVec128 >(), id ());
241241 }
242242
243243 // ! \}
You can’t perform that action at this time.
0 commit comments