Leopold Toetsch wrote:
ori r11, r31, 20 # r31 is 0 add r3, r4, r11 # a 2nd oris is needed for constants > 0xffff
Well that's actually a bad example as there exists addi and addis instructions.
But have a look at src/jit/arm/jit_emit.h emit_load_constant() and follow the functions it's calling.
leo