Skip to content

Commit 88708bf

Browse files
committed
Add a few more integer ops "under consideration".
1 parent de13b77 commit 88708bf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

AstSemantics.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,15 @@ Additional 32-bit integer Operations under consideration:
268268
* Int32Clz - count leading zeroes (defined for all values, including 0)
269269
* Int32Ctz - count trailing zeroes (defined for all values, including 0)
270270
* Int32Popcnt - count number of ones
271+
* Int32Clrs - count leading redundant sign bits (defined for all values, including 0)
272+
* Int32Abs - absolute value (`abs(INT32_MIN)` is `INT32_MIN`)
271273
* Int32BSwap - reverse bytes (endian conversion)
272274
* Int32Rotr - bitwise rotate right
273275
* Int32Rotl - bitwise rotate left
276+
* Int32SExt - `sext(x, y)` is `x<<y>>y`
274277
* Int32Not - signed-less one's complement
278+
* Int32Neg - signed-less two's complement
279+
* Int32Bang - logical negation
275280
* Int32SMin - signed minimum
276281
* Int32SMax - signed maximum
277282
* Int32UMin - unsigned minimum

0 commit comments

Comments
 (0)