ARCv2: IDU-intc: Use build registers for getting numbers of interrupts