> Try a custom lowering of the 64bit shift instructions and then in the Lower[SRL|SHL|SRA] function, generate a call instruction to the function you want. Yes, that's what I've done now. The slightly ugly thing is, of course, that I have to copy the MakeLibCall function into our own backend (not exactly clean). Cheers, Johannes