The chipmaker briefly dethroned Microsoft as the world's most valuable company — but its market cap then edged lower to cap off a volatile trading week.