Skip to content

Commit 38bbfbf

Browse files
committed
Rename testcrate to builtins-test
The repo will soon have `libm` as a top-level crate, so make it clear that this is only the test crate for `compiler-builtins`.
1 parent bffb4ab commit 38bbfbf

35 files changed

+38
-37
lines changed

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
resolver = "3"
33
members = [
44
# Note that builtins-test-intrinsics cannot be a default member because it
5-
# needs the `mangled-names` feature disabled, while `testcrate` needs it
6-
# enabled.
5+
# needs the `mangled-names` feature disabled, while `builtins-test` needs
6+
# it enabled.
7+
"builtins-test",
78
"builtins-test-intrinsics",
89
"compiler-builtins",
9-
"testcrate",
1010
]
1111

1212
default-members = [
1313
"compiler-builtins",
14-
"testcrate",
14+
"builtins-test",
1515
]
1616

1717
[profile.release]

testcrate/Cargo.toml renamed to builtins-test/Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "testcrate"
2+
name = "builtins-test"
33
version = "0.1.0"
44
authors = ["Alex Crichton <alex@alexcrichton.com>"]
55
edition = "2024"
@@ -56,8 +56,9 @@ icount = ["dep:iai-callgrind"]
5656
benchmarking-reports = ["criterion/plotters", "criterion/html_reports"]
5757

5858
# NOTE: benchmarks must be run with `--no-default-features` or with
59-
# `-p testcrate`, otherwise the default `compiler-builtins` feature of the
60-
# `compiler_builtins` crate gets activated, resulting in linker errors.
59+
# `-p builtins-test`, otherwise the default `compiler-builtins` feature
60+
# of the `compiler_builtins` crate gets activated, resulting in linker
61+
# errors.
6162

6263
[[bench]]
6364
name = "float_add"

testcrate/benches/float_add.rs renamed to builtins-test/benches/float_add.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#![cfg_attr(f128_enabled, feature(f128))]
22

3+
use builtins_test::float_bench;
34
use compiler_builtins::float::add;
45
use criterion::{Criterion, criterion_main};
5-
use testcrate::float_bench;
66

77
float_bench! {
88
name: add_f32,

testcrate/benches/float_cmp.rs renamed to builtins-test/benches/float_cmp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![cfg_attr(f128_enabled, feature(f128))]
22

3+
use builtins_test::float_bench;
34
use criterion::{Criterion, criterion_main};
4-
use testcrate::float_bench;
55

66
use compiler_builtins::float::cmp;
77

testcrate/benches/float_conv.rs renamed to builtins-test/benches/float_conv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#![allow(improper_ctypes)]
22
#![cfg_attr(f128_enabled, feature(f128))]
33

4+
use builtins_test::float_bench;
45
use compiler_builtins::float::conv;
56
use criterion::{Criterion, criterion_main};
6-
use testcrate::float_bench;
77

88
/* unsigned int -> float */
99

testcrate/benches/float_div.rs renamed to builtins-test/benches/float_div.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#![cfg_attr(f128_enabled, feature(f128))]
22

3+
use builtins_test::float_bench;
34
use compiler_builtins::float::div;
45
use criterion::{Criterion, criterion_main};
5-
use testcrate::float_bench;
66

77
float_bench! {
88
name: div_f32,

testcrate/benches/float_extend.rs renamed to builtins-test/benches/float_extend.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
#![cfg_attr(f128_enabled, feature(f128))]
33
#![cfg_attr(f16_enabled, feature(f16))]
44

5+
use builtins_test::float_bench;
56
use compiler_builtins::float::extend;
67
use criterion::{Criterion, criterion_main};
7-
use testcrate::float_bench;
88

99
#[cfg(f16_enabled)]
1010
float_bench! {

testcrate/benches/float_mul.rs renamed to builtins-test/benches/float_mul.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#![cfg_attr(f128_enabled, feature(f128))]
22

3+
use builtins_test::float_bench;
34
use compiler_builtins::float::mul;
45
use criterion::{Criterion, criterion_main};
5-
use testcrate::float_bench;
66

77
float_bench! {
88
name: mul_f32,

testcrate/benches/float_pow.rs renamed to builtins-test/benches/float_pow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#![cfg_attr(f128_enabled, feature(f128))]
22

3+
use builtins_test::float_bench;
34
use compiler_builtins::float::pow;
45
use criterion::{Criterion, criterion_main};
5-
use testcrate::float_bench;
66

77
float_bench! {
88
name: powi_f32,

testcrate/benches/float_sub.rs renamed to builtins-test/benches/float_sub.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#![cfg_attr(f128_enabled, feature(f128))]
22

3+
use builtins_test::float_bench;
34
use compiler_builtins::float::sub;
45
use criterion::{Criterion, criterion_main};
5-
use testcrate::float_bench;
66

77
float_bench! {
88
name: sub_f32,

0 commit comments

Comments
 (0)