Move tests to SIMD subdirectory

This commit is contained in:
gnzlbg 2019-09-24 16:52:03 +02:00
parent 75d8199ab1
commit f0bbd2b71c
5 changed files with 10 additions and 10 deletions

View file

@ -247,8 +247,8 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
vector[index] = scalar;
} else {
throw_ub_format!(
"Inserting `{:?}` with size `{}` to a vector element place of size `{}`",
scalar, scalar.layout.size.bytes(), vector[index].layout.size.bytes()
"Inserting `{}` with size `{}` to a vector element place of size `{}`",
scalar.layout.ty, scalar.layout.size.bytes(), vector[index].layout.size.bytes()
);
}
self.write_vector(vector, dest)?;

View file

@ -1,11 +1,11 @@
error: any use of this value will cause an error
--> $DIR/const_eval-simd_fail.rs:14:14
--> $DIR/insert_extract-fail.rs:14:14
|
LL | unsafe { simd_insert(x, 0_u32, 42_i16) }.0
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| Inserting `i16` with size `2` to a vector element place of size `1`
| inside call to `foo` at $DIR/const_eval-simd_fail.rs:19:19
| inside call to `foo` at $DIR/insert_extract-fail.rs:19:19
...
LL | const X: i8 = foo(V);
| ---------------------

View file

@ -1,5 +1,5 @@
warning: skipping const checks
--> $DIR/const_eval-simd.rs:22:5
--> $DIR/insert_extract.rs:22:5
|
LL | assert_eq!(X, 42);
| ^^^^^^^^^^^^^^^^^^
@ -7,7 +7,7 @@ LL | assert_eq!(X, 42);
= note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
warning: skipping const checks
--> $DIR/const_eval-simd.rs:22:5
--> $DIR/insert_extract.rs:22:5
|
LL | assert_eq!(X, 42);
| ^^^^^^^^^^^^^^^^^^
@ -15,7 +15,7 @@ LL | assert_eq!(X, 42);
= note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
warning: skipping const checks
--> $DIR/const_eval-simd.rs:22:5
--> $DIR/insert_extract.rs:22:5
|
LL | assert_eq!(X, 42);
| ^^^^^^^^^^^^^^^^^^
@ -23,7 +23,7 @@ LL | assert_eq!(X, 42);
= note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
warning: skipping const checks
--> $DIR/const_eval-simd.rs:23:5
--> $DIR/insert_extract.rs:23:5
|
LL | assert_eq!(Y, 13);
| ^^^^^^^^^^^^^^^^^^
@ -31,7 +31,7 @@ LL | assert_eq!(Y, 13);
= note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
warning: skipping const checks
--> $DIR/const_eval-simd.rs:23:5
--> $DIR/insert_extract.rs:23:5
|
LL | assert_eq!(Y, 13);
| ^^^^^^^^^^^^^^^^^^
@ -39,7 +39,7 @@ LL | assert_eq!(Y, 13);
= note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
warning: skipping const checks
--> $DIR/const_eval-simd.rs:23:5
--> $DIR/insert_extract.rs:23:5
|
LL | assert_eq!(Y, 13);
| ^^^^^^^^^^^^^^^^^^