Every once in a while, a publication will run something like this about major companies [1][2]. It seems to be standard practice among large corporations. As a company, if you are allowed to save large amounts of money by using existing loopholes (read: things that are within the scope of the law), wouldn't you be silly not to?
[1]http://www.businessweek.com/magazine/content/10_44/b42010431...
[2]http://www.nytimes.com/2012/04/29/business/apples-tax-strate...
[Disclaimer: I work for Microsoft]