If your Pap smear is abnormal and your HPV test comes back negative, you don't have HPV, but the doctor will likely want to do further tests to see what could be causing the abnormality– it could result from an infection, menopause, pregnancy, or pre-cancerous cell growth. If you do have a positive HPV test with a normal or abnormal Pap smear, that means you have HPV and you could be at risk for cervical cancer in the future. If you get these results, it's important to be screened frequently in the coming months to catch any early signs of cervical cancer. 
Even if you contracted HPV years before the test, but your body cleared out the infection, a negative HPV test combined with abnormal pap smear could still indicate the presence of pre-cancerous cells. In this case, make sure to schedule further testing even if you have not been sexually active for a while, or if you no longer test positive for HPV.