use of com.oracle.truffle.llvm.runtime.floating.LLVM80BitFloat in project sulong by graalvm.
the class LLVM80BitFromIntTest method testMinInt.
@Test
public void testMinInt() {
LLVM80BitFloat val = LLVM80BitFloat.fromInt(Integer.MIN_VALUE);
LLVM80BitFloat expected = LLVM80BitFloat.fromRawValues(true, 0x401e, 0x8000000000000000L);
assertEquals(expected, val);
}
use of com.oracle.truffle.llvm.runtime.floating.LLVM80BitFloat in project sulong by graalvm.
the class LLVM80BitFromIntTest method testOne.
@Test
public void testOne() {
LLVM80BitFloat val = LLVM80BitFloat.fromInt(1);
LLVM80BitFloat expected = LLVM80BitFloat.fromRawValues(false, 0x3fff, Long.reverse(1));
assertEquals(expected, val);
}
use of com.oracle.truffle.llvm.runtime.floating.LLVM80BitFloat in project sulong by graalvm.
the class LLVM80BitFromLongTest method testMinValue.
@Test
public void testMinValue() {
LLVM80BitFloat val = LLVM80BitFloat.fromLong(Long.MIN_VALUE);
LLVM80BitFloat expected = LLVM80BitFloat.fromRawValues(true, 0x403e, 0x8000000000000000L);
assertEquals(expected, val);
}
use of com.oracle.truffle.llvm.runtime.floating.LLVM80BitFloat in project sulong by graalvm.
the class LLVM80BitFromLongTest method testMinusOne.
@Test
public void testMinusOne() {
LLVM80BitFloat val = LLVM80BitFloat.fromLong(-1);
LLVM80BitFloat expected = LLVM80BitFloat.fromRawValues(true, 0x3fff, 0x8000000000000000L);
assertEquals(expected, val);
}
use of com.oracle.truffle.llvm.runtime.floating.LLVM80BitFloat in project sulong by graalvm.
the class LLVM80BitFromLongTest method testZero.
@Test
public void testZero() {
LLVM80BitFloat val = LLVM80BitFloat.fromLong(0);
LLVM80BitFloat expected = LLVM80BitFloat.fromRawValues(false, 0, 0);
assertEquals(expected, val);
}
Aggregations