Already-relegated Derry marked their Division One departure with a 2-15 to 1-11 win over Cork at Owenbeg.
Enda Lynn scored both goals against a much-changed Cork who were already assured of their semi-final place.
Cork, who will face Donegal in the last four, had led 1-07 to 0-07 at the break with Stephen O'Donoghue netting.
But Derry hit back with Lynn getting his first after being set up by Mark Lynch, and then palming home his second from a Michael McIver ball.
The last goal put Brian McIver's men 2-12 to 1-09 up with 10 minutes left.
Cork registered late points through John O'Rourke and a Colm O'Neill free but the Rebels were well beaten.
The win was not enough to save Derry from the drop but they can at least reflect on one of their best performances of 2015 to date.
Division One semi-finals
Cork v Donegal
Dublin v Monaghan