Re: `u64` by `u64` div/mod in DRM QR for arm32

2025-05-05 Thread Geert Uytterhoeven
Hi Russell, On Mon, 14 Apr 2025, Russell King (Oracle) wrote: On Mon, Apr 14, 2025 at 09:21:42PM +0200, Christian Schrefl wrote: Hi Miguel, On 14.04.25 8:14 PM, Miguel Ojeda wrote: Hi Jocelyn, Christian, I started build-testing arm 32-bit within my other usual routine tests, and I hi

Re: `u64` by `u64` div/mod in DRM QR for arm32

2025-04-15 Thread Paolo Bonzini
On 4/15/25 11:14, Jocelyn Falempe wrote: For this case, the u64 divisor "pow" is a power of 10, so can have only a limited number of values. (17, and 9 of them can be used as u32). Normally when the divisor is known at build time the compiler can replace the division by a multiplication and some

Re: `u64` by `u64` div/mod in DRM QR for arm32

2025-04-15 Thread Christian Schrefl
Hi Miguel, On 14.04.25 8:14 PM, Miguel Ojeda wrote: > Hi Jocelyn, Christian, > > I started build-testing arm 32-bit within my other usual routine > tests, and I hit: > > ld.lld: error: undefined symbol: __aeabi_uldivmod > >>> referenced by drm_panic_qr.rs:417 > (drivers/gpu/drm/drm_pani

Re: `u64` by `u64` div/mod in DRM QR for arm32

2025-04-15 Thread Jocelyn Falempe
On 14/04/2025 21:46, Russell King (Oracle) wrote: On Mon, Apr 14, 2025 at 09:21:42PM +0200, Christian Schrefl wrote: Hi Miguel, On 14.04.25 8:14 PM, Miguel Ojeda wrote: Hi Jocelyn, Christian, I started build-testing arm 32-bit within my other usual routine tests, and I hit: ld.lld: erro

Re: `u64` by `u64` div/mod in DRM QR for arm32

2025-04-14 Thread Miguel Ojeda
On Mon, Apr 14, 2025 at 8:14 PM Miguel Ojeda wrote: > > operator with some support from upstream Rust. Or do you have Or, probably something that makes more sense: just forbidding its use. Cheers, Miguel

Re: `u64` by `u64` div/mod in DRM QR for arm32

2025-04-14 Thread Russell King (Oracle)
On Mon, Apr 14, 2025 at 09:21:42PM +0200, Christian Schrefl wrote: > Hi Miguel, > > On 14.04.25 8:14 PM, Miguel Ojeda wrote: > > Hi Jocelyn, Christian, > > > > I started build-testing arm 32-bit within my other usual routine > > tests, and I hit: > > > > ld.lld: error: undefined symbol: __ae