Files
mercury/tests/hard_coded/unsigned_lt_le.exp
Zoltan Somogyi 1e64d0ed0e Declare private_builtin.unsigned_{lt,le}.
library/private_builtin.m:
    As above. The code recognizing them as builtins was added a few weeks ago.

configure.ac:
    Require the installed compiled to contain that code.

compiler/options.m:
    Provide a way to test whether the compiler has *this* diff.

library/int.m:
    Delete int.unsigned_lt, and use private_builtin.unsigned_lt instead.

tests/hard_coded/unsigned_lt_le.{m,exp}:
    A test case for the two operations.

tests/hard_coded/Mmakefile:
    Enable the new test case.
2020-05-25 16:50:46 +10:00

19 lines
963 B
Plaintext

ffffffffffffffd6 unsigned_lt ffffffffffffffd6 = false
ffffffffffffffd6 unsigned_le ffffffffffffffd6 = true
ffffffffffffffd6 unsigned_lt 2a = false
ffffffffffffffd6 unsigned_le 2a = false
ffffffffffffffd6 unsigned_lt 12 = false
ffffffffffffffd6 unsigned_le 12 = false
2a unsigned_lt ffffffffffffffd6 = true
2a unsigned_le ffffffffffffffd6 = true
2a unsigned_lt 2a = false
2a unsigned_le 2a = true
2a unsigned_lt 12 = false
2a unsigned_le 12 = false
12 unsigned_lt ffffffffffffffd6 = true
12 unsigned_le ffffffffffffffd6 = true
12 unsigned_lt 2a = true
12 unsigned_le 2a = true
12 unsigned_lt 12 = false
12 unsigned_le 12 = true