riscv: lib: Check if output in asm goto supported