Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
当从GetSpr寄存器(AR)获取的值为零或负数时,计算唯一ID数量的逻辑可能导致uniqueIdNum变量下溢,产生溢出数据,导致后续计算循环取出非法值,导致aic error
Ascend950
构造indices 值全为-1 时,例如[-1,-1,-1]
indices 值越界或者负索引都能正常执行,不能aic error
errcode:(263, 95) errorStr: CCU instruction address check error.The DDR address of the MTE instruction is out of range. subErrType: 0x4.
/assign
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
当从GetSpr寄存器(AR)获取的值为零或负数时,计算唯一ID数量的逻辑可能导致uniqueIdNum变量下溢,产生溢出数据,导致后续计算循环取出非法值,导致aic error
Environment / 环境信息 (Mandatory / 必填)
Ascend950
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
构造indices 值全为-1 时,例如[-1,-1,-1]
Describe the expected behavior / 预期结果 (Mandatory / 必填)
indices 值越界或者负索引都能正常执行,不能aic error
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
errcode:(263, 95) errorStr: CCU instruction address check error.The DDR address of the MTE instruction is out of range. subErrType: 0x4.
Special notes for this issue/备注 (Optional / 选填)