diff options
| author | Folkert de Vries <folkert@folkertdev.nl> | 2025-09-07 13:26:50 +0200 |
|---|---|---|
| committer | Folkert de Vries <folkert@folkertdev.nl> | 2025-09-07 14:11:02 +0200 |
| commit | 2ba0a6e48974e3f358c18724ebf673787d72ceea (patch) | |
| tree | 6ed87c721c068d3a76939cc7192f9767533d0c33 /library/stdarch/crates/intrinsic-test/src/common/intrinsic_helpers.rs | |
| parent | 9d9ca01bfa541e9badd9f34c776b588cfbf0e3ce (diff) | |
| download | rust-2ba0a6e48974e3f358c18724ebf673787d72ceea.tar.gz rust-2ba0a6e48974e3f358c18724ebf673787d72ceea.zip | |
move `print_result_c` into the trait
Diffstat (limited to 'library/stdarch/crates/intrinsic-test/src/common/intrinsic_helpers.rs')
| -rw-r--r-- | library/stdarch/crates/intrinsic-test/src/common/intrinsic_helpers.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/library/stdarch/crates/intrinsic-test/src/common/intrinsic_helpers.rs b/library/stdarch/crates/intrinsic-test/src/common/intrinsic_helpers.rs index f5e84ca97af..7bc1015a387 100644 --- a/library/stdarch/crates/intrinsic-test/src/common/intrinsic_helpers.rs +++ b/library/stdarch/crates/intrinsic-test/src/common/intrinsic_helpers.rs @@ -325,4 +325,9 @@ pub trait IntrinsicTypeDefinition: Deref<Target = IntrinsicType> { /// can be directly defined in `impl` blocks fn c_single_vector_type(&self) -> String; + + /// Generates a std::cout for the intrinsics results that will match the + /// rust debug output format for the return type. The generated line assumes + /// there is an int i in scope which is the current pass number. + fn print_result_c(&self, indentation: Indentation, additional: &str) -> String; } |
