The operation section of LDTILECFG uses this function for determining one of the #GP(0) reasons. However, the respective exception class AMX-E1 mandates #UD anyway when one or both of the respective XCR0 bits are clear. What's the deal here?
For more complete information about compiler optimizations, see our Optimization Notice.