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