Skip to content

Commit 87e39a2

Browse files
feat: display __mmask8 values so that non-utf8 values are not displayed
1 parent 4b06d4b commit 87e39a2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 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,11 @@ 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+
os << static_cast<int>(value);
350+
return os;
351+
}
346352
"#;
347353

348354
pub const X86_CONFIGURATIONS: &str = r#"

0 commit comments

Comments
 (0)