Chipmaker Qualcomm’s Stock Gains on Earnings, Revenue Beat