Project

General

Profile

Actions

Bug #6035

closed

Superfluous initialization code

Added by Alexander Kamkin over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Andrei Tatarnikov
Category:
Test Engine
Target version:
Start date:
06/05/2015
Due date:
% Done:

100%

Estimated time:
Detected in build:
svn
Platform:
Published in build:
150605

Description

E.g., there is no need to initialize x0 and x1:

// Initialization:

movz x1, #0x8f55, LSL #48
movk x1, #0x91a6, LSL #32
movk x1, #0xaac3, LSL #16
movk x1, #0xf6be, LSL #0
movz x0, #0x2827, LSL #48
movk x0, #0xbfa3, LSL #32
movk x0, #0xb075, LSL #16
movk x0, #0x226b, LSL #0

// Main Code:

movz x0, #0x19, LSL #0
movz x1, #0x34, LSL #0
cycle_1:
cmp x1, x0, LSL #0
b.EQ done_1
cmp x0, x1, LSL #0
b.LT if_less_1
sub x0, x0, x1, LSL #0
b cycle_1
if_less_1:
sub x1, x1, x0, LSL #0
b cycle_1
done_1:
add x2, x1, #0, LSL #0
hlt #61440
Actions

Also available in: Atom PDF