| ... | ... | @@ -166,19 +166,25 @@ pub const Inst = struct { |
| 166 | 166 | mod, |
| 167 | 167 | /// Same as `mod` with optimized float mode. |
| 168 | 168 | mod_optimized, |
| 169 | | /// Add an offset to a pointer, returning a new pointer. |
| 170 | | /// The offset is in element type units, not bytes. |
| 171 | | /// Wrapping is illegal behavior. |
| 172 | | /// The lhs is the pointer, rhs is the offset. Result type is the same as lhs. |
| 173 | | /// The pointer may be a slice. |
| 174 | | /// Uses the `ty_pl` field. Payload is `Bin`. |
| 169 | /// Add an offset, in element type units, to a pointer, returning a new |
| 170 | /// pointer. Element type may not be zero bits. |
| 171 | /// |
| 172 | /// Wrapping is illegal behavior. If the newly computed address is |
| 173 | /// outside the provenance of the operand, the result is undefined. |
| 174 | /// |
| 175 | /// Uses the `ty_pl` field. Payload is `Bin`. The lhs is the pointer, |
| 176 | /// rhs is the offset. Result type is the same as lhs. The operand may |
| 177 | /// be a slice. |
| 175 | 178 | ptr_add, |
| 176 | | /// Subtract an offset from a pointer, returning a new pointer. |
| 177 | | /// The offset is in element type units, not bytes. |
| 178 | | /// Wrapping is illegal behavior. |
| 179 | | /// The lhs is the pointer, rhs is the offset. Result type is the same as lhs. |
| 180 | | /// The pointer may be a slice. |
| 181 | | /// Uses the `ty_pl` field. Payload is `Bin`. |
| 179 | /// Subtract an offset, in element type units, from a pointer, |
| 180 | /// returning a new pointer. Element type may not be zero bits. |
| 181 | /// |
| 182 | /// Wrapping is illegal behavior. If the newly computed address is |
| 183 | /// outside the provenance of the operand, the result is undefined. |
| 184 | /// |
| 185 | /// Uses the `ty_pl` field. Payload is `Bin`. The lhs is the pointer, |
| 186 | /// rhs is the offset. Result type is the same as lhs. The operand may |
| 187 | /// be a slice. |
| 182 | 188 | ptr_sub, |
| 183 | 189 | /// Given two operands which can be floats, integers, or vectors, returns the |
| 184 | 190 | /// greater of the operands. For vectors it operates element-wise. |