Qualcomm on Wednesday forecast sales and profits above analyst expectations as artificial intelligence features helped drive sales of the smartphones, laptops and other devices powered by its chips.