Technically, the military uses the .50cal rifles against equipment, not personnel (helicopters, light vehicles, radar, etc.). It is against the Law of Armed Conflict to deliberately use .50cal ammo against personnel. I'm certain that the U.S. military would never do that...
It's against those same laws to use shotguns in war, as well. And I saw several Marines slinging Remingtons over their shoulders on CNN.