mirror of
https://github.com/corda/corda.git
synced 2025-01-19 11:16:54 +00:00
disable Math.abs(long) intrinsic on 32-bit x86
It never worked and caused the compiler to crash instead due to an impossible-to-fulfill constraint.
This commit is contained in:
parent
8de53aeacc
commit
19dca18cd0
@ -2914,8 +2914,12 @@ class MyArchitecture: public Assembler::Architecture {
|
||||
break;
|
||||
|
||||
case Absolute:
|
||||
*aTypeMask = (1 << RegisterOperand);
|
||||
*aRegisterMask = (static_cast<uint64_t>(1) << rax);
|
||||
if (aSize <= BytesPerWord) {
|
||||
*aTypeMask = (1 << RegisterOperand);
|
||||
*aRegisterMask = (static_cast<uint64_t>(1) << rax);
|
||||
} else {
|
||||
*thunk = true;
|
||||
}
|
||||
break;
|
||||
|
||||
case FloatAbsolute:
|
||||
|
@ -60,6 +60,8 @@ public class Longs {
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
expect(Math.abs(-123L) == 123L);
|
||||
|
||||
expect(readLongFrom(new java.io.InputStream() {
|
||||
int step;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user