HP shares rose as much as 9% in extended trading on Tuesday after the PC maker reported fiscal fourth-quarter earnings that beat analysts' estimates and provided an optimistic earnings forecast.