Measuring magnetism under very high-pressure conditions