| 1 |
// https://issues.dlang.org/show_bug.cgi?id=16087 |
| 2 |
// { dg-do compile } |
| 3 |
import core.simd; |
| 4 |
|
| 5 |
static if (__traits(compiles, void8)) static assert(void8.alignof == 8); |
| 6 |
static if (__traits(compiles, double1)) static assert(double1.alignof == 8); |
| 7 |
static if (__traits(compiles, float2)) static assert(float2.alignof == 8); |
| 8 |
static if (__traits(compiles, byte8)) static assert(byte8.alignof == 8); |
| 9 |
static if (__traits(compiles, ubyte8)) static assert(ubyte8.alignof == 8); |
| 10 |
static if (__traits(compiles, short4)) static assert(short4.alignof == 8); |
| 11 |
static if (__traits(compiles, ushort4)) static assert(ushort4.alignof == 8); |
| 12 |
static if (__traits(compiles, int2)) static assert(int2.alignof == 8); |
| 13 |
static if (__traits(compiles, uint2)) static assert(uint2.alignof == 8); |
| 14 |
static if (__traits(compiles, long1)) static assert(long1.alignof == 8); |
| 15 |
static if (__traits(compiles, ulong1)) static assert(ulong1.alignof == 8); |
| 16 |
|
| 17 |
static if (__traits(compiles, void8)) static assert(void8.sizeof == 8); |
| 18 |
static if (__traits(compiles, double1)) static assert(double1.sizeof == 8); |
| 19 |
static if (__traits(compiles, float2)) static assert(float2.sizeof == 8); |
| 20 |
static if (__traits(compiles, byte8)) static assert(byte8.sizeof == 8); |
| 21 |
static if (__traits(compiles, ubyte8)) static assert(ubyte8.sizeof == 8); |
| 22 |
static if (__traits(compiles, short4)) static assert(short4.sizeof == 8); |
| 23 |
static if (__traits(compiles, ushort4)) static assert(ushort4.sizeof == 8); |
| 24 |
static if (__traits(compiles, int2)) static assert(int2.sizeof == 8); |
| 25 |
static if (__traits(compiles, uint2)) static assert(uint2.sizeof == 8); |
| 26 |
static if (__traits(compiles, long1)) static assert(long1.sizeof == 8); |
| 27 |
static if (__traits(compiles, ulong1)) static assert(ulong1.sizeof == 8); |
| 28 |
|
| 29 |
static if (__traits(compiles, void16)) static assert(void16.alignof == 16); |
| 30 |
static if (__traits(compiles, double2)) static assert(double2.alignof == 16); |
| 31 |
static if (__traits(compiles, float4)) static assert(float4.alignof == 16); |
| 32 |
static if (__traits(compiles, byte16)) static assert(byte16.alignof == 16); |
| 33 |
static if (__traits(compiles, ubyte16)) static assert(ubyte16.alignof == 16); |
| 34 |
static if (__traits(compiles, short8)) static assert(short8.alignof == 16); |
| 35 |
static if (__traits(compiles, ushort8)) static assert(ushort8.alignof == 16); |
| 36 |
static if (__traits(compiles, int4)) static assert(int4.alignof == 16); |
| 37 |
static if (__traits(compiles, uint4)) static assert(uint4.alignof == 16); |
| 38 |
static if (__traits(compiles, long2)) static assert(long2.alignof == 16); |
| 39 |
static if (__traits(compiles, ulong2)) static assert(ulong2.alignof == 16); |
| 40 |
|
| 41 |
static if (__traits(compiles, void16)) static assert(void16.sizeof == 16); |
| 42 |
static if (__traits(compiles, double2)) static assert(double2.sizeof == 16); |
| 43 |
static if (__traits(compiles, float4)) static assert(float4.sizeof == 16); |
| 44 |
static if (__traits(compiles, byte16)) static assert(byte16.sizeof == 16); |
| 45 |
static if (__traits(compiles, ubyte16)) static assert(ubyte16.sizeof == 16); |
| 46 |
static if (__traits(compiles, short8)) static assert(short8.sizeof == 16); |
| 47 |
static if (__traits(compiles, ushort8)) static assert(ushort8.sizeof == 16); |
| 48 |
static if (__traits(compiles, int4)) static assert(int4.sizeof == 16); |
| 49 |
static if (__traits(compiles, uint4)) static assert(uint4.sizeof == 16); |
| 50 |
static if (__traits(compiles, long2)) static assert(long2.sizeof == 16); |
| 51 |
static if (__traits(compiles, ulong2)) static assert(ulong2.sizeof == 16); |
| 52 |
static if (__traits(compiles, void32)) static assert(void32.alignof == 32); |
| 53 |
static if (__traits(compiles, double4)) static assert(double4.alignof == 32); |
| 54 |
static if (__traits(compiles, float8)) static assert(float8.alignof == 32); |
| 55 |
static if (__traits(compiles, byte32)) static assert(byte32.alignof == 32); |
| 56 |
static if (__traits(compiles, ubyte32)) static assert(ubyte32.alignof == 32); |
| 57 |
static if (__traits(compiles, short16)) static assert(short16.alignof == 32); |
| 58 |
static if (__traits(compiles, ushort16)) static assert(ushort16.alignof == 32); |
| 59 |
static if (__traits(compiles, int8)) static assert(int8.alignof == 32); |
| 60 |
static if (__traits(compiles, uint8)) static assert(uint8.alignof == 32); |
| 61 |
static if (__traits(compiles, long4)) static assert(long4.alignof == 32); |
| 62 |
static if (__traits(compiles, ulong4)) static assert(ulong4.alignof == 32); |
| 63 |
|
| 64 |
static if (__traits(compiles, void32)) static assert(void32.sizeof == 32); |
| 65 |
static if (__traits(compiles, double4)) static assert(double4.sizeof == 32); |
| 66 |
static if (__traits(compiles, float8)) static assert(float8.sizeof == 32); |
| 67 |
static if (__traits(compiles, byte32)) static assert(byte32.sizeof == 32); |
| 68 |
static if (__traits(compiles, ubyte32)) static assert(ubyte32.sizeof == 32); |
| 69 |
static if (__traits(compiles, short16)) static assert(short16.sizeof == 32); |
| 70 |
static if (__traits(compiles, ushort16)) static assert(ushort16.sizeof == 32); |
| 71 |
static if (__traits(compiles, int8)) static assert(int8.sizeof == 32); |
| 72 |
static if (__traits(compiles, uint8)) static assert(uint8.sizeof == 32); |
| 73 |
static if (__traits(compiles, long4)) static assert(long4.sizeof == 32); |
| 74 |
static if (__traits(compiles, ulong4)) static assert(ulong4.sizeof == 32); |
| 75 |
|
| 76 |
static if (__traits(compiles, void64)) static assert(void64.alignof == 64); |
| 77 |
static if (__traits(compiles, double8)) static assert(double8.alignof == 64); |
| 78 |
static if (__traits(compiles, float16)) static assert(float16.alignof == 64); |
| 79 |
static if (__traits(compiles, byte64)) static assert(byte64.alignof == 64); |
| 80 |
static if (__traits(compiles, ubyte64)) static assert(ubyte64.alignof == 64); |
| 81 |
static if (__traits(compiles, short32)) static assert(short32.alignof == 64); |
| 82 |
static if (__traits(compiles, ushort32)) static assert(ushort32.alignof == 64); |
| 83 |
static if (__traits(compiles, int16)) static assert(int16.alignof == 64); |
| 84 |
static if (__traits(compiles, uint16)) static assert(uint16.alignof == 64); |
| 85 |
static if (__traits(compiles, long8)) static assert(long8.alignof == 64); |
| 86 |
static if (__traits(compiles, ulong8)) static assert(ulong8.alignof == 64); |
| 87 |
|
| 88 |
static if (__traits(compiles, void64)) static assert(void64.sizeof == 64); |
| 89 |
static if (__traits(compiles, double8)) static assert(double8.sizeof == 64); |
| 90 |
static if (__traits(compiles, float16)) static assert(float16.sizeof == 64); |
| 91 |
static if (__traits(compiles, byte64)) static assert(byte64.sizeof == 64); |
| 92 |
static if (__traits(compiles, ubyte64)) static assert(ubyte64.sizeof == 64); |
| 93 |
static if (__traits(compiles, short32)) static assert(short32.sizeof == 64); |
| 94 |
static if (__traits(compiles, ushort32)) static assert(ushort32.sizeof == 64); |
| 95 |
static if (__traits(compiles, int16)) static assert(int16.sizeof == 64); |
| 96 |
static if (__traits(compiles, uint16)) static assert(uint16.sizeof == 64); |
| 97 |
static if (__traits(compiles, long8)) static assert(long8.sizeof == 64); |
| 98 |
static if (__traits(compiles, ulong8)) static assert(ulong8.sizeof == 64); |