WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

Commit 43e27ca9 authored by Isaac Oscar Gariano's avatar Isaac Oscar Gariano
Browse files

Fixed aarch64 bug (apparently 0xFF only has 8 '1's and not 16...)

parent 58b5d7d5
......@@ -1591,11 +1591,11 @@ pub fn emit_mov_u64(backend: &mut CodeGenerator, dest: &P<Value>, val: u64)
if n_ones > n_zeros { // It will take less instructions to use MOVN
let (pv0, pv1, pv2, pv3) = split_aarch64_imm_u64(negative_value);
if pv0 != 0xFF {
if pv0 != bits_ones(16) as u16 {
backend.emit_movn(&dest, !pv0, 0);
movzn = true;
}
if pv1 != 0xFF {
if pv1 != bits_ones(16) as u16 {
if !movzn {
backend.emit_movn(&dest, !pv1, 16);
movzn = true;
......@@ -1603,7 +1603,7 @@ pub fn emit_mov_u64(backend: &mut CodeGenerator, dest: &P<Value>, val: u64)
backend.emit_movk(&dest, pv1, 16);
}
}
if pv2 != 0xFF {
if pv2 != bits_ones(16) as u16 {
if !movzn {
backend.emit_movn(&dest, !pv2, 32);
movzn = true;
......@@ -1611,7 +1611,7 @@ pub fn emit_mov_u64(backend: &mut CodeGenerator, dest: &P<Value>, val: u64)
backend.emit_movk(&dest, pv2, 32);
}
}
if pv3 != 0xFF {
if pv3 != bits_ones(16) as u16 {
if !movzn {
backend.emit_movn(&dest, pv3, 48);
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment