Fix for pad name changes in 5.21.7-to-be

PADNAME is no longer an alias for SV, so now we have to use the
PadnameIs* macros, rather than checking SV flags directly.