https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103785
--- Comment #8 from H.J. Lu <hjl.tools at gmail dot com> --- Created attachment 52055 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52055&action=edit Good and bad asm --- good.s 2021-12-24 11:24:26.531365375 -0800 +++ bad.s 2021-12-24 11:24:30.769344666 -0800 @@ -10,7 +10,6 @@ sem_type__interp_map__setX: .cfi_def_cfa_offset 8 .cfi_offset 7, -8 movl %edx, %edi - movl $714200473, %edx pushl %esi .cfi_def_cfa_offset 12 .cfi_offset 6, -12 @@ -18,7 +17,8 @@ sem_type__interp_map__setX: .cfi_def_cfa_offset 16 .cfi_offset 3, -16 movl %eax, %ebx - imull %edx + movl $714200473, %eax + imull %eax movl %ebx, %eax sarl $31, %eax sarl $9, %edx @@ -2161,9 +2161,8 @@ sem_type__get_first_interp: cmpb $71, %al je .L242 .L226: - movl %ebx, %eax - movl $714200473, %edx - imull %edx + movl $714200473, %eax + imull %ebx movl %ebx, %eax sarl $31, %eax sarl $9, %edx @@ -10929,9 +10928,8 @@ sem_type__save_interps: cmpb $71, %al je .L1375 .L1358: - movl %ebx, %eax - movl $714200473, %edx - imull %edx + movl $714200473, %eax + imull %ebx movl %ebx, %eax sarl $31, %eax sarl $9, %edx