Forum Discussion
Altera_Forum
Honored Contributor
19 years agoLong division on Nios 2
Hi there I have a question: Has anybody performed "long division" on Nios-2? I mean 64-bit/64-bit signed and unsigned division with [unsigned] long long of [unsigned] long data types ...
Altera_Forum
Honored Contributor
19 years ago --- Quote Start --- originally posted by svhb@Oct 19 2006, 12:39 PM i can say that the division should work. i did already before. but i think if you want to specify the constants, you need to add ll : --- Quote End --- Hi stefaan i think i am missing something here. i will check this with nios2 sdk 5.1. i was actually referring to the nios2 gnupro sources (version 6.0). There, "nios2.md" does not include no "movdi" pattern for handling the DItype. Thus, the compiler can't know how to emit split 64-bit moves. what is the version/tool you have checked the load immediate constant for a (64-bit) long long? kind regards -kavi