EXHIBIT 23.1 CONSENT OF ERNST & YOUNG LLP, INDEPENDENT AUDITORS We consent to the incorporation by reference in this Registration Statement (Form S-8) pertaining to the 1996 Stock Incentive Plan of our report dated January 9, 1998, with respect to the consolidated financial statements and schedule of Advanced Micro Devices, Inc. included in its Annual Report (Form 10-K), as amended, for the year ended December 28, 1997, filed with the Securities and Exchange Commission. /s/ Ernst & Young LLP San Jose, California June 22, 1998