HP shares were sinking after the company reported weak PC, printer and software sales, but shares of its HP Enterprise unit rose as sales improved.