Rubrik reported a narrower-than-expected loss as revenue beat analysts' expectations and the stock rose 21%. Semtech swung to a profit and revenue increased, beating analyst views. Shares gained 12%.