static long intSRight(long val, long amt) {
		if (Long.compareUnsigned(amt, Long.SIZE) >= 0) {
			return val >> (Long.SIZE - 1);
		}
		return val >> amt;
	}
The implementation of {@link PcodeOp#INT_SRIGHT int_sright} on JVM longs.

<p>
The semantics here are subtly different than the JVM's {@link Opcodes#ISHR ishr}: 1) The
amount must be treated as unsigned. 2) Shifts in excess of val's size fill the register with
the sign bit.

@param val the value as in {@code val s>> amt}
@param amt the amt as in {@code val s>> amt}
@return the value
Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/emu/jit/gen/tgt/JitCompiledPassage.java