Thanks!
FYI, it's undefined in D mainly because the behavior of the actual Intel CPU instruction is undefined in such cases:
https://c9x.me/x86/html/file_module_x86_id_285.html"it is undefined for SHL and SHR instructions where the count is greater than or equal to the size (in bits) of the destination operand".