File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
crates/intrinsic-test/src/x86 Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ mod xml_parser;
5
5
6
6
use crate :: common:: SupportedArchitectureTest ;
7
7
use crate :: common:: cli:: ProcessedCli ;
8
+ use crate :: common:: compare:: compare_outputs;
8
9
use crate :: common:: gen_rust:: compile_rust_programs;
9
10
use crate :: common:: intrinsic:: { Intrinsic , IntrinsicDefinition } ;
10
11
use crate :: common:: intrinsic_helpers:: TypeKind ;
@@ -94,6 +95,21 @@ impl SupportedArchitectureTest for X86ArchitectureTest {
94
95
}
95
96
96
97
fn compare_outputs ( & self ) -> bool {
97
- todo ! ( "compare_outputs in X86ArchitectureTest is not implemented" )
98
+ if let Some ( ref toolchain) = self . cli_options . toolchain {
99
+ let intrinsics_name_list = self
100
+ . intrinsics
101
+ . iter ( )
102
+ . map ( |i| i. name . clone ( ) )
103
+ . collect :: < Vec < _ > > ( ) ;
104
+
105
+ compare_outputs (
106
+ & intrinsics_name_list,
107
+ toolchain,
108
+ & self . cli_options . c_runner ,
109
+ & self . cli_options . target ,
110
+ )
111
+ } else {
112
+ true
113
+ }
98
114
}
99
115
}
You can’t perform that action at this time.
0 commit comments