A new gamma-ray spectrometer with MHz capabilities has been developed to measure the bremsstrahlung emission spectrum in the gamma-ray energy band generated by MeV range runaway electrons in disruption experiments at ASDEX Upgrade. Properties of the runaway electrons are inferred from the measured bremsstrahlung spectrum by a deconvolution technique, particularly with regard to their maximum energy. Changes induced to the runaway electron velocity space are unambiguously observed both in massive gas injection and resonant magnetic perturbation experiments with the detector.