mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
ARM: fix vmov.i64 immediate validity check
Typo meant we were only checking the low byte (repeatedly). llvm-svn: 275437
This commit is contained in:
parent
f071f36723
commit
71f4182372
@ -1731,7 +1731,7 @@ public:
|
||||
if (!CE) return false;
|
||||
uint64_t Value = CE->getValue();
|
||||
// i64 value with each byte being either 0 or 0xff.
|
||||
for (unsigned i = 0; i < 8; ++i)
|
||||
for (unsigned i = 0; i < 8; ++i, Value >>= 8)
|
||||
if ((Value & 0xff) != 0 && (Value & 0xff) != 0xff) return false;
|
||||
return true;
|
||||
}
|
||||
|
@ -20,3 +20,6 @@ fconsts s1, #1.0
|
||||
|
||||
fconstd d2, #1.0
|
||||
@ CHECK: error: invalid floating point immediate
|
||||
|
||||
vmov.i64 d0, 0x8000000000000000
|
||||
@ CHECK: error: invalid operand for instruction
|
||||
|
Loading…
Reference in New Issue
Block a user