Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pacak committed Oct 9, 2024
1 parent f1ed25c commit 59c612a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/check-and-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
components: rustfmt clippy rust-src
targets: armv7-unknown-linux-gnueabihf

- name: merged functions1
run: |
cargo run -- --manifest-path sample_merged/Cargo.toml --everything
- name: Build all the things
run: cargo build --tests

Expand Down Expand Up @@ -232,8 +236,6 @@ jobs:

- name: merged functions
run: |
cargo run -- --manifest-path sample_merged/Cargo.toml sample_merged::merged_0
cargo run -- --manifest-path sample_merged/Cargo.toml sample_merged::merged_1
cargo run -- --manifest-path sample_merged/Cargo.toml sample_merged::one
cargo run -- --manifest-path sample_merged/Cargo.toml sample_merged::one_plus_one
cargo run -- --manifest-path sample_merged/Cargo.toml sample_merged::two
Expand Down
2 changes: 2 additions & 0 deletions sample_merged/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#[inline(never)]
#[cfg(target_arch = "x86_64")]
pub fn merged_0() {
let simd_reg = unsafe {
std::arch::x86_64::_mm_set_epi8(15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0)
Expand All @@ -7,6 +8,7 @@ pub fn merged_0() {
}

#[inline(never)]
#[cfg(target_arch = "x86_64")]
pub fn merged_1() {
let simd_reg = unsafe {
std::arch::x86_64::_mm_set_epi8(15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0)
Expand Down

0 comments on commit 59c612a

Please sign in to comment.