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;
55
66use crate :: common:: SupportedArchitectureTest ;
77use crate :: common:: cli:: ProcessedCli ;
8+ use crate :: common:: compare:: compare_outputs;
89use crate :: common:: gen_rust:: compile_rust_programs;
910use crate :: common:: intrinsic:: { Intrinsic , IntrinsicDefinition } ;
1011use crate :: common:: intrinsic_helpers:: TypeKind ;
@@ -94,6 +95,21 @@ impl SupportedArchitectureTest for X86ArchitectureTest {
9495 }
9596
9697 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+ }
98114 }
99115}
You can’t perform that action at this time.
0 commit comments