mirror of
https://github.com/RRZE-HPC/OSACA.git
synced 2026-01-05 02:30:08 +01:00
replaced b4799d1d with smarter solution
This commit is contained in:
@@ -417,10 +417,7 @@ class ParserAArch64(BaseParser):
|
||||
# arithmetic immediate, add calculated value as value
|
||||
immediate['shift'] = immediate['shift'][0]
|
||||
immediate['value'] = (
|
||||
int(
|
||||
immediate['base_immediate']['value'],
|
||||
16 if immediate['base_immediate']['value'].lower().startswith('0x') else 10
|
||||
) << int(immediate['shift']['value'])
|
||||
int(immediate['base_immediate']['value'], 0) << int(immediate['shift']['value'])
|
||||
)
|
||||
return AttrDict({self.IMMEDIATE_ID: immediate})
|
||||
if 'float' in immediate:
|
||||
|
||||
Reference in New Issue
Block a user