Skip to content

Commit 2876624

Browse files
feat: display __mmkas8 values so that non-utf8 values are not displayed
1 parent 4b06d4b commit 2876624

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

crates/intrinsic-test/src/x86/config.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ pub const PLATFORM_C_FORWARD_DECLARATIONS: &str = r#"
222222
std::ostream& operator<<(std::ostream& os, __m128i value);
223223
std::ostream& operator<<(std::ostream& os, __m256i value);
224224
std::ostream& operator<<(std::ostream& os, __m512i value);
225+
std::ostream& operator<<(std::ostream& os, __mmask8 value);
225226
226227
#define _mm512_extract_intrinsic_test_epi8(m, lane) \
227228
_mm_extract_epi8(_mm512_extracti64x2_epi64((m), (lane) / 16), (lane) % 16)
@@ -343,6 +344,14 @@ std::ostream& operator<<(std::ostream& os, __m512i value) {
343344
os << ss.str();
344345
return os;
345346
}
347+
348+
std::ostream& operator<<(std::ostream& os, __mmask8 value) {
349+
std::stringstream ss;
350+
ss << "0x";
351+
ss << std::setfill('0') << std::setw(2) << std::hex << static_cast<int>(value);
352+
os << ss.str();
353+
return os;
354+
}
346355
"#;
347356

348357
pub const X86_CONFIGURATIONS: &str = r#"

0 commit comments

Comments
 (0)