That's probably a good idea.  If you use inline asm you're on your own.  Detecting it may be possible, especially if dmd's iasm gets its much-needed re-write.