1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
/// CPU flags representing the result of an integer comparison. These flags
/// can be tested with an :type:`intcc` condition code.
pub const IFLAGS: Type = Type(0x1);

/// CPU flags representing the result of a floating point comparison. These
/// flags can be tested with a :type:`floatcc` condition code.
pub const FFLAGS: Type = Type(0x2);

/// A boolean type with 1 bits.
pub const B1: Type = Type(0x70);

/// A boolean type with 8 bits.
pub const B8: Type = Type(0x71);

/// A boolean type with 16 bits.
pub const B16: Type = Type(0x72);

/// A boolean type with 32 bits.
pub const B32: Type = Type(0x73);

/// A boolean type with 64 bits.
pub const B64: Type = Type(0x74);

/// A boolean type with 128 bits.
pub const B128: Type = Type(0x75);

/// An integer type with 8 bits.
/// WARNING: arithmetic on 8bit integers is incomplete
pub const I8: Type = Type(0x76);

/// An integer type with 16 bits.
/// WARNING: arithmetic on 16bit integers is incomplete
pub const I16: Type = Type(0x77);

/// An integer type with 32 bits.
pub const I32: Type = Type(0x78);

/// An integer type with 64 bits.
pub const I64: Type = Type(0x79);

/// An integer type with 128 bits.
pub const I128: Type = Type(0x7a);

/// A 32-bit floating point type represented in the IEEE 754-2008
/// *binary32* interchange format. This corresponds to the :c:type:`float`
/// type in most C implementations.
pub const F32: Type = Type(0x7b);

/// A 64-bit floating point type represented in the IEEE 754-2008
/// *binary64* interchange format. This corresponds to the :c:type:`double`
/// type in most C implementations.
pub const F64: Type = Type(0x7c);

/// An opaque reference type with 32 bits.
pub const R32: Type = Type(0x7e);

/// An opaque reference type with 64 bits.
pub const R64: Type = Type(0x7f);

/// A SIMD vector with 8 lanes containing a `b8` each.
pub const B8X8: Type = Type(0xa1);

/// A SIMD vector with 4 lanes containing a `b16` each.
pub const B16X4: Type = Type(0x92);

/// A SIMD vector with 2 lanes containing a `b32` each.
pub const B32X2: Type = Type(0x83);

/// A SIMD vector with 8 lanes containing a `i8` each.
pub const I8X8: Type = Type(0xa6);

/// A SIMD vector with 4 lanes containing a `i16` each.
pub const I16X4: Type = Type(0x97);

/// A SIMD vector with 2 lanes containing a `i32` each.
pub const I32X2: Type = Type(0x88);

/// A SIMD vector with 2 lanes containing a `f32` each.
pub const F32X2: Type = Type(0x8b);

/// A SIMD vector with 16 lanes containing a `b8` each.
pub const B8X16: Type = Type(0xb1);

/// A SIMD vector with 8 lanes containing a `b16` each.
pub const B16X8: Type = Type(0xa2);

/// A SIMD vector with 4 lanes containing a `b32` each.
pub const B32X4: Type = Type(0x93);

/// A SIMD vector with 2 lanes containing a `b64` each.
pub const B64X2: Type = Type(0x84);

/// A SIMD vector with 16 lanes containing a `i8` each.
pub const I8X16: Type = Type(0xb6);

/// A SIMD vector with 8 lanes containing a `i16` each.
pub const I16X8: Type = Type(0xa7);

/// A SIMD vector with 4 lanes containing a `i32` each.
pub const I32X4: Type = Type(0x98);

/// A SIMD vector with 2 lanes containing a `i64` each.
pub const I64X2: Type = Type(0x89);

/// A SIMD vector with 4 lanes containing a `f32` each.
pub const F32X4: Type = Type(0x9b);

/// A SIMD vector with 2 lanes containing a `f64` each.
pub const F64X2: Type = Type(0x8c);

/// A SIMD vector with 32 lanes containing a `b8` each.
pub const B8X32: Type = Type(0xc1);

/// A SIMD vector with 16 lanes containing a `b16` each.
pub const B16X16: Type = Type(0xb2);

/// A SIMD vector with 8 lanes containing a `b32` each.
pub const B32X8: Type = Type(0xa3);

/// A SIMD vector with 4 lanes containing a `b64` each.
pub const B64X4: Type = Type(0x94);

/// A SIMD vector with 2 lanes containing a `b128` each.
pub const B128X2: Type = Type(0x85);

/// A SIMD vector with 32 lanes containing a `i8` each.
pub const I8X32: Type = Type(0xc6);

/// A SIMD vector with 16 lanes containing a `i16` each.
pub const I16X16: Type = Type(0xb7);

/// A SIMD vector with 8 lanes containing a `i32` each.
pub const I32X8: Type = Type(0xa8);

/// A SIMD vector with 4 lanes containing a `i64` each.
pub const I64X4: Type = Type(0x99);

/// A SIMD vector with 2 lanes containing a `i128` each.
pub const I128X2: Type = Type(0x8a);

/// A SIMD vector with 8 lanes containing a `f32` each.
pub const F32X8: Type = Type(0xab);

/// A SIMD vector with 4 lanes containing a `f64` each.
pub const F64X4: Type = Type(0x9c);

/// A SIMD vector with 64 lanes containing a `b8` each.
pub const B8X64: Type = Type(0xd1);

/// A SIMD vector with 32 lanes containing a `b16` each.
pub const B16X32: Type = Type(0xc2);

/// A SIMD vector with 16 lanes containing a `b32` each.
pub const B32X16: Type = Type(0xb3);

/// A SIMD vector with 8 lanes containing a `b64` each.
pub const B64X8: Type = Type(0xa4);

/// A SIMD vector with 4 lanes containing a `b128` each.
pub const B128X4: Type = Type(0x95);

/// A SIMD vector with 64 lanes containing a `i8` each.
pub const I8X64: Type = Type(0xd6);

/// A SIMD vector with 32 lanes containing a `i16` each.
pub const I16X32: Type = Type(0xc7);

/// A SIMD vector with 16 lanes containing a `i32` each.
pub const I32X16: Type = Type(0xb8);

/// A SIMD vector with 8 lanes containing a `i64` each.
pub const I64X8: Type = Type(0xa9);

/// A SIMD vector with 4 lanes containing a `i128` each.
pub const I128X4: Type = Type(0x9a);

/// A SIMD vector with 16 lanes containing a `f32` each.
pub const F32X16: Type = Type(0xbb);

/// A SIMD vector with 8 lanes containing a `f64` each.
pub const F64X8: Type = Type(0xac);