add more precise check for AMD