Skip to content

Commit f39f1a4

Browse files
committed
Move SIMD tests
1 parent 4d72ed6 commit f39f1a4

15 files changed

+29
-37
lines changed

src/test/ui/simd-type.rs

-32
This file was deleted.
File renamed without changes.
File renamed without changes.

src/test/ui/simd/simd-type.rs

+29-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,33 @@
1-
// run-pass
2-
#![allow(dead_code)]
1+
#![feature(repr_simd)]
2+
#![allow(non_camel_case_types)]
33

4-
// pretty-expanded FIXME #23616
4+
// ignore-tidy-linelength
55

6-
#![feature(repr_simd)]
6+
#[repr(simd)]
7+
struct empty; //~ ERROR SIMD vector cannot be empty
8+
9+
#[repr(simd)]
10+
struct empty2([f32; 0]); //~ ERROR SIMD vector cannot be empty
11+
12+
#[repr(simd)]
13+
struct pow2([f32; 7]); //~ ERROR SIMD vector length must be a power of two
14+
15+
#[repr(simd)]
16+
struct i64f64(i64, f64); //~ ERROR SIMD vector should be homogeneous
17+
18+
struct Foo;
19+
20+
#[repr(simd)]
21+
struct FooV(Foo, Foo); //~ ERROR SIMD vector element type should be a primitive scalar (integer/float/pointer) type
22+
23+
#[repr(simd)]
24+
struct FooV2([Foo; 2]); //~ ERROR SIMD vector element type should be a primitive scalar (integer/float/pointer) type
25+
26+
#[repr(simd)]
27+
struct TooBig([f32; 65536]); //~ ERROR SIMD vector cannot have more than 32768 elements
28+
29+
#[repr(simd)]
30+
struct JustRight([u128; 32768]);
731

832
#[repr(simd)]
933
struct RGBA {
@@ -13,4 +37,4 @@ struct RGBA {
1337
a: f32
1438
}
1539

16-
pub fn main() {}
40+
fn main() {}
File renamed without changes.

0 commit comments

Comments
 (0)