about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCaleb Zulawski <caleb.zulawski@gmail.com>2021-01-23 17:55:34 -0500
committerCaleb Zulawski <caleb.zulawski@gmail.com>2021-01-23 17:55:34 -0500
commitf39f1a4ad93b6bca237631ff5c3325e7d0ddbd67 (patch)
treefde99ad4c281bafa8d6ea79b6436902fb6c9ec66
parent4d72ed61ee11acf084de1a375c839ce40bbdf548 (diff)
downloadrust-f39f1a4ad93b6bca237631ff5c3325e7d0ddbd67.tar.gz
rust-f39f1a4ad93b6bca237631ff5c3325e7d0ddbd67.zip
Move SIMD tests
-rw-r--r--src/test/ui/simd-type.rs32
-rw-r--r--src/test/ui/simd/issue-17170.rs (renamed from src/test/ui/issues/issue-17170.rs)0
-rw-r--r--src/test/ui/simd/issue-17170.stderr (renamed from src/test/ui/issues/issue-17170.stderr)0
-rw-r--r--src/test/ui/simd/issue-39720.rs (renamed from src/test/ui/issues/issue-39720.rs)0
-rw-r--r--src/test/ui/simd/issue-39720.stderr (renamed from src/test/ui/issues/issue-39720.stderr)0
-rw-r--r--src/test/ui/simd/simd-type-generic-monomorphisation-empty.rs (renamed from src/test/ui/simd-type-generic-monomorphisation-empty.rs)0
-rw-r--r--src/test/ui/simd/simd-type-generic-monomorphisation-empty.stderr (renamed from src/test/ui/simd-type-generic-monomorphisation-empty.stderr)0
-rw-r--r--src/test/ui/simd/simd-type-generic-monomorphisation-oversized.rs (renamed from src/test/ui/simd-type-generic-monomorphisation-oversized.rs)0
-rw-r--r--src/test/ui/simd/simd-type-generic-monomorphisation-oversized.stderr (renamed from src/test/ui/simd-type-generic-monomorphisation-oversized.stderr)0
-rw-r--r--src/test/ui/simd/simd-type-generic-monomorphisation-power-of-two.rs (renamed from src/test/ui/simd-type-generic-monomorphisation-power-of-two.rs)0
-rw-r--r--src/test/ui/simd/simd-type-generic-monomorphisation-power-of-two.stderr (renamed from src/test/ui/simd-type-generic-monomorphisation-power-of-two.stderr)0
-rw-r--r--src/test/ui/simd/simd-type-generic-monomorphisation.rs (renamed from src/test/ui/simd-type-generic-monomorphisation.rs)0
-rw-r--r--src/test/ui/simd/simd-type-generic-monomorphisation.stderr (renamed from src/test/ui/simd-type-generic-monomorphisation.stderr)0
-rw-r--r--src/test/ui/simd/simd-type.rs34
-rw-r--r--src/test/ui/simd/simd-type.stderr (renamed from src/test/ui/simd-type.stderr)0
15 files changed, 29 insertions, 37 deletions
diff --git a/src/test/ui/simd-type.rs b/src/test/ui/simd-type.rs
deleted file mode 100644
index 87df26434d7..00000000000
--- a/src/test/ui/simd-type.rs
+++ /dev/null
@@ -1,32 +0,0 @@
-#![feature(repr_simd)]
-#![allow(non_camel_case_types)]
-
-// ignore-tidy-linelength
-
-#[repr(simd)]
-struct empty; //~ ERROR SIMD vector cannot be empty
-
-#[repr(simd)]
-struct empty2([f32; 0]); //~ ERROR SIMD vector cannot be empty
-
-#[repr(simd)]
-struct pow2([f32; 7]); //~ ERROR SIMD vector length must be a power of two
-
-#[repr(simd)]
-struct i64f64(i64, f64); //~ ERROR SIMD vector should be homogeneous
-
-struct Foo;
-
-#[repr(simd)]
-struct FooV(Foo, Foo); //~ ERROR SIMD vector element type should be a primitive scalar (integer/float/pointer) type
-
-#[repr(simd)]
-struct FooV2([Foo; 2]); //~ ERROR SIMD vector element type should be a primitive scalar (integer/float/pointer) type
-
-#[repr(simd)]
-struct TooBig([f32; 65536]); //~ ERROR SIMD vector cannot have more than 32768 elements
-
-#[repr(simd)]
-struct JustRight([u128; 32768]);
-
-fn main() {}
diff --git a/src/test/ui/issues/issue-17170.rs b/src/test/ui/simd/issue-17170.rs
index 49cfbab9a3e..49cfbab9a3e 100644
--- a/src/test/ui/issues/issue-17170.rs
+++ b/src/test/ui/simd/issue-17170.rs
diff --git a/src/test/ui/issues/issue-17170.stderr b/src/test/ui/simd/issue-17170.stderr
index b35c3c4dc98..b35c3c4dc98 100644
--- a/src/test/ui/issues/issue-17170.stderr
+++ b/src/test/ui/simd/issue-17170.stderr
diff --git a/src/test/ui/issues/issue-39720.rs b/src/test/ui/simd/issue-39720.rs
index 7d596926512..7d596926512 100644
--- a/src/test/ui/issues/issue-39720.rs
+++ b/src/test/ui/simd/issue-39720.rs
diff --git a/src/test/ui/issues/issue-39720.stderr b/src/test/ui/simd/issue-39720.stderr
index 355ceff0050..355ceff0050 100644
--- a/src/test/ui/issues/issue-39720.stderr
+++ b/src/test/ui/simd/issue-39720.stderr
diff --git a/src/test/ui/simd-type-generic-monomorphisation-empty.rs b/src/test/ui/simd/simd-type-generic-monomorphisation-empty.rs
index 0121404c749..0121404c749 100644
--- a/src/test/ui/simd-type-generic-monomorphisation-empty.rs
+++ b/src/test/ui/simd/simd-type-generic-monomorphisation-empty.rs
diff --git a/src/test/ui/simd-type-generic-monomorphisation-empty.stderr b/src/test/ui/simd/simd-type-generic-monomorphisation-empty.stderr
index 00fde199b12..00fde199b12 100644
--- a/src/test/ui/simd-type-generic-monomorphisation-empty.stderr
+++ b/src/test/ui/simd/simd-type-generic-monomorphisation-empty.stderr
diff --git a/src/test/ui/simd-type-generic-monomorphisation-oversized.rs b/src/test/ui/simd/simd-type-generic-monomorphisation-oversized.rs
index bd0d457b35e..bd0d457b35e 100644
--- a/src/test/ui/simd-type-generic-monomorphisation-oversized.rs
+++ b/src/test/ui/simd/simd-type-generic-monomorphisation-oversized.rs
diff --git a/src/test/ui/simd-type-generic-monomorphisation-oversized.stderr b/src/test/ui/simd/simd-type-generic-monomorphisation-oversized.stderr
index f4418350115..f4418350115 100644
--- a/src/test/ui/simd-type-generic-monomorphisation-oversized.stderr
+++ b/src/test/ui/simd/simd-type-generic-monomorphisation-oversized.stderr
diff --git a/src/test/ui/simd-type-generic-monomorphisation-power-of-two.rs b/src/test/ui/simd/simd-type-generic-monomorphisation-power-of-two.rs
index 3a0b9e02663..3a0b9e02663 100644
--- a/src/test/ui/simd-type-generic-monomorphisation-power-of-two.rs
+++ b/src/test/ui/simd/simd-type-generic-monomorphisation-power-of-two.rs
diff --git a/src/test/ui/simd-type-generic-monomorphisation-power-of-two.stderr b/src/test/ui/simd/simd-type-generic-monomorphisation-power-of-two.stderr
index 82cc0d8714a..82cc0d8714a 100644
--- a/src/test/ui/simd-type-generic-monomorphisation-power-of-two.stderr
+++ b/src/test/ui/simd/simd-type-generic-monomorphisation-power-of-two.stderr
diff --git a/src/test/ui/simd-type-generic-monomorphisation.rs b/src/test/ui/simd/simd-type-generic-monomorphisation.rs
index 0275f0ce4c1..0275f0ce4c1 100644
--- a/src/test/ui/simd-type-generic-monomorphisation.rs
+++ b/src/test/ui/simd/simd-type-generic-monomorphisation.rs
diff --git a/src/test/ui/simd-type-generic-monomorphisation.stderr b/src/test/ui/simd/simd-type-generic-monomorphisation.stderr
index 7f23893ac85..7f23893ac85 100644
--- a/src/test/ui/simd-type-generic-monomorphisation.stderr
+++ b/src/test/ui/simd/simd-type-generic-monomorphisation.stderr
diff --git a/src/test/ui/simd/simd-type.rs b/src/test/ui/simd/simd-type.rs
index e7b9bfe32f8..cc7443d0485 100644
--- a/src/test/ui/simd/simd-type.rs
+++ b/src/test/ui/simd/simd-type.rs
@@ -1,9 +1,33 @@
-// run-pass
-#![allow(dead_code)]
+#![feature(repr_simd)]
+#![allow(non_camel_case_types)]
 
-// pretty-expanded FIXME #23616
+// ignore-tidy-linelength
 
-#![feature(repr_simd)]
+#[repr(simd)]
+struct empty; //~ ERROR SIMD vector cannot be empty
+
+#[repr(simd)]
+struct empty2([f32; 0]); //~ ERROR SIMD vector cannot be empty
+
+#[repr(simd)]
+struct pow2([f32; 7]); //~ ERROR SIMD vector length must be a power of two
+
+#[repr(simd)]
+struct i64f64(i64, f64); //~ ERROR SIMD vector should be homogeneous
+
+struct Foo;
+
+#[repr(simd)]
+struct FooV(Foo, Foo); //~ ERROR SIMD vector element type should be a primitive scalar (integer/float/pointer) type
+
+#[repr(simd)]
+struct FooV2([Foo; 2]); //~ ERROR SIMD vector element type should be a primitive scalar (integer/float/pointer) type
+
+#[repr(simd)]
+struct TooBig([f32; 65536]); //~ ERROR SIMD vector cannot have more than 32768 elements
+
+#[repr(simd)]
+struct JustRight([u128; 32768]);
 
 #[repr(simd)]
 struct RGBA {
@@ -13,4 +37,4 @@ struct RGBA {
     a: f32
 }
 
-pub fn main() {}
+fn main() {}
diff --git a/src/test/ui/simd-type.stderr b/src/test/ui/simd/simd-type.stderr
index 8b15ef05e03..8b15ef05e03 100644
--- a/src/test/ui/simd-type.stderr
+++ b/src/test/ui/simd/simd-type.stderr