Skip to content

Commit 1a07650

Browse files
debug: printing self incase print_result_c fails.
1 parent 9726455 commit 1a07650

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ impl IntrinsicDefinition<X86IntrinsicType> for Intrinsic<X86IntrinsicType> {
8383
TypeKind::Void => "void".to_string(),
8484
TypeKind::Float if self.results().inner_size() == 64 => "double".to_string(),
8585
TypeKind::Float if self.results().inner_size() == 32 => "float".to_string(),
86-
TypeKind::Mask => format!("__mmask{}", self.results.bit_len.unwrap()),
87-
TypeKind::Vector => format!("__m{}i", self.results.bit_len.unwrap()),
86+
TypeKind::Mask => format!("__mmask{}", self.results.bit_len.expect(format!("self: {:#?}", self).as_str())),
87+
TypeKind::Vector => format!("__m{}i", self.results.bit_len.expect(format!("self: {:#?}", self).as_str())),
8888
// TypeKind::Float if self.results().inner_size() == 16 => "float16_t".to_string(),
8989
// TypeKind::Int(true) if self.results().inner_size() == 64 => "long".to_string(),
9090
// TypeKind::Int(false) if self.results().inner_size() == 64 => "unsigned long".to_string(),

0 commit comments

Comments
 (0)