Sorry, I don't get it. The Intel manual says on UD2:
"Raises an invalid opcode exception in all operating modes."
What is here undefined? LLVM must not generate such instructions except it it really wants such a exception. (Like Linux's panic() does on x86)