The CAS upheld new IAAF rules which attempt to restrict testosterone levels in female runners such as South Africa's Semenya.