##ldr_imm_fpsimd_execute
CheckFPAdvSIMDEnabled64();

bits(64) address;
bits(datasize) data;

if n == 31 then
    address = SP[];
else
    address = X[n];
end

if ! postindex then
    address = address + offset;
end

case memop of
    when MemOp_STORE
        data = V[t];
        Mem[address, datasize / 8, acctype] = data;
    end

    when MemOp_LOAD
        data = Mem[address, datasize / 8, acctype];
        V[t] = data;
    end

if wback then
    if postindex then
        address = address + offset;
    end
    if n == 31 then
        SP[] = address;
    else
        X[n] = address;
    end
end
@@
