PSX gives up gains despite IMF deal