mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
469da485f8
This allows the ints to be written as integer expressions evaluating to unsigned 16-bit/32-bit integers. All the expressions may use the following operators: + - & | ~, and parentheses. Minus token - can be also unary. There is no precedence of the operators other than the unary operators binding stronger than their binary counterparts. Differential Revision: https://reviews.llvm.org/D37022 llvm-svn: 314477
16 lines
344 B
Plaintext
16 lines
344 B
Plaintext
LANGUAGE 3 + 2, 3 - 2
|
|
LANGUAGE 3 | 2, 3 & 2
|
|
LANGUAGE -3, ~3
|
|
LANGUAGE 1|1&0, 0&0|1
|
|
LANGUAGE 3+4-5, 3-4+5
|
|
LANGUAGE 1+2|3, 3|1+2
|
|
LANGUAGE 6&~5, 6&-8
|
|
LANGUAGE -1, --1
|
|
LANGUAGE ----1, -----1
|
|
LANGUAGE ~1, ~~1
|
|
LANGUAGE ~~~~1, ~~~~~1
|
|
LANGUAGE 5-(1+2), 1|(1&0)
|
|
LANGUAGE ~(3-7), -(3+~7)
|
|
LANGUAGE 0, (1+3)|(2+11)
|
|
LANGUAGE (((((((5))))))), (((((((7)))))))
|