Runtime checks for modulus operation
This issue is connected with issue #4981.
We have to perform the same checks for modulus operation as well, which rustc does by default.
Expected output:
_ZN6divide10modulus_fn17h412f78f11a8bfe22E:
.LFB1:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $32, %rsp
movl %edi, -20(%rbp)
movl %esi, -24(%rbp)
movl -24(%rbp), %esi
testl %esi, %esi
je .L6
movl -20(%rbp), %eax
cmpl $-2147483648, %eax
jne .L7
cmpl $-1, %esi
jne .L7
.L6:
call abort
.L7:
cltd
idivl %esi
movl %edx, %ecx
movl %ecx, %eax
movl %eax, -4(%rbp)
movl -4(%rbp), %eax
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
Hi Diyan here! I noticed that the Alpine 32-bit check is failing on this PR.
From the available GitHub Actions annotations, the failure appears to occur during the Alpine setup stage, specifically while downloading apk-tools, rather than during GCC Rust compilation or the newly added tests.
Has this been observed on other PRs as well? I'd be interested in investigating whether this is a CI infrastructure issue and helping if needed.
Hello @Diyan4444 ! Yes the alpine tests have been failing for quite some time. You can join our Zulip server as we discuss over there as well. You are right in pointing out that it's not an issue in compilation of gccrs.
You can check out the reason over (#general > failing alpine ci @ 💬)