Don't use ARM's MOVW and MOVT instructions to write to the PC. (487595, r=vladimir)

This commit is contained in:
Jacob Bramley 2009-06-23 11:13:54 +01:00
Родитель 110458c8a4
Коммит 78e3ec6a4d
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1092,7 +1092,7 @@ Assembler::LD32_nochk(Register r, int32_t imm)
return;
}
if (AvmCore::config.thumb2) {
if (AvmCore::config.thumb2 && (r != PC)) {
// On ARMv6T2 and above, we can just emit a movw/movt pair.
// Note: The movt is only necessary if the high 16 bits are non-zero.
if (((imm >> 16) & 0xFFFF) != 0)