Microsoft Corp reported a quarterly loss on Wednesday, hurt by a US$13.8 billion charge related to U.S. tax reform.