So, (try to) instrument a guarded load.
(there was a discussion about dropping exp-sgcheck but this was
causing all tests to fail, so doing a quick fix in the meantime).
387712 s390x cgijnl reports Conditional jump depends on uninitialised value
387773 .gnu_debugaltlink paths resolve relative to .debug file, not symlink
388862 Add replacements for wmemchr and wcsnlen on Linux
+389373 exp-sgcheck the 'impossible' happened as st_LoadG is not instrumented
389065 valgrind meets gcc flag -Wlogical-op
390723 make xtree dump files world wide readable, similar to log files
break;
}
+ case Ist_LoadG: {
+ IRLoadG* lg = st->Ist.LoadG.details;
+ IRType type = Ity_INVALID; /* loaded type */
+ IRType typeWide = Ity_INVALID; /* after implicit widening */
+ IRExpr* addr = lg->addr;
+ typeOfIRLoadGOp(lg->cvt, &typeWide, &type);
+ tl_assert(type != Ity_INVALID);
+ instrument_mem_access(
+ env, sbOut, addr, sizeofIRType(type), False/*isStore*/,
+ sizeofIRType(hWordTy), env->curr_IP, layout
+ );
+ break;
+ }
+
default:
tl_assert(0);