Skip to content

Commit 9eb138d

Browse files
code cleanup
1 parent da49266 commit 9eb138d

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

crates/intrinsic-test/src/arm/functions.rs

+5-9
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ use crate::common::intrinsic_types::IntrinsicTypeDefinition;
1111
use crate::common::write_file;
1212
use itertools::Itertools;
1313
use rayon::prelude::*;
14-
use std::collections::BTreeMap;
1514

1615
// The number of times each intrinsic will be called.
1716
const PASSES: u32 = 20;
@@ -162,7 +161,6 @@ fn generate_rust_program_arm(
162161

163162
fn compile_c_arm(
164163
intrinsics_name_list: &Vec<String>,
165-
_filename_mapping: BTreeMap<&String, String>,
166164
compiler: &str,
167165
target: &str,
168166
cxx_toolchain_dir: Option<&str>,
@@ -176,6 +174,10 @@ fn compile_c_arm(
176174
.set_project_root("c_programs")
177175
.add_extra_flags(vec!["-ffp-contract=off", "-Wno-narrowing"]);
178176

177+
if !target.contains("v7") {
178+
command = command.add_arch_flags(vec!["fanimalux", "lut", "sha3"]);
179+
}
180+
179181
command = if target == "aarch64_be-unknown-linux-gnu" {
180182
command
181183
.set_linker(
@@ -233,13 +235,7 @@ pub fn build_c(
233235

234236
match compiler {
235237
None => true,
236-
Some(compiler) => compile_c_arm(
237-
&intrinsics_name_list,
238-
filename_mapping,
239-
compiler,
240-
target,
241-
cxx_toolchain_dir,
242-
),
238+
Some(compiler) => compile_c_arm(&intrinsics_name_list, compiler, target, cxx_toolchain_dir),
243239
}
244240
}
245241

0 commit comments

Comments
 (0)