about summary refs log tree commit diff
path: root/tests/codegen/simd
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2025-02-21 21:00:43 -0800
committerScott McMurray <scottmcm@users.noreply.github.com>2025-04-09 09:09:37 -0700
commit50d0ce1b42d67ce98b2ccac55d22a2ff8abe3273 (patch)
treeb372a833e17bf40219302ce5aa5d180ca42675f4 /tests/codegen/simd
parentf06e5c1e35bc5bc6131c6f8a0eb782097e3f28c3 (diff)
downloadrust-50d0ce1b42d67ce98b2ccac55d22a2ff8abe3273.tar.gz
rust-50d0ce1b42d67ce98b2ccac55d22a2ff8abe3273.zip
Ensure `swap_nonoverlapping` is really always untyped
Diffstat (limited to 'tests/codegen/simd')
-rw-r--r--tests/codegen/simd/swap-simd-types.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/codegen/simd/swap-simd-types.rs b/tests/codegen/simd/swap-simd-types.rs
index 69767d0a755..c063cc683a6 100644
--- a/tests/codegen/simd/swap-simd-types.rs
+++ b/tests/codegen/simd/swap-simd-types.rs
@@ -23,8 +23,8 @@ pub fn swap_single_m256(x: &mut __m256, y: &mut __m256) {
 #[no_mangle]
 pub fn swap_m256_slice(x: &mut [__m256], y: &mut [__m256]) {
     // CHECK-NOT: alloca
-    // CHECK: load <8 x float>{{.+}}align 32
-    // CHECK: store <8 x float>{{.+}}align 32
+    // CHECK-COUNT-2: load <4 x i64>{{.+}}align 32
+    // CHECK-COUNT-2: store <4 x i64>{{.+}}align 32
     if x.len() == y.len() {
         x.swap_with_slice(y);
     }
@@ -34,7 +34,7 @@ pub fn swap_m256_slice(x: &mut [__m256], y: &mut [__m256]) {
 #[no_mangle]
 pub fn swap_bytes32(x: &mut [u8; 32], y: &mut [u8; 32]) {
     // CHECK-NOT: alloca
-    // CHECK: load <32 x i8>{{.+}}align 1
-    // CHECK: store <32 x i8>{{.+}}align 1
+    // CHECK-COUNT-2: load <4 x i64>{{.+}}align 1
+    // CHECK-COUNT-2: store <4 x i64>{{.+}}align 1
     swap(x, y)
 }