President Obama in a speech this week called for "economic patriotism." He's decrying US companies that set up or buy a company in another country to take advantage of that country's lower corporate tax rate. The tactic is called a corporate inversion, and billionaire investor Marc Cuban is up in arms about the strategy, too.

Related: The White House becomes Wall St.’s ‘dating service’

Cuban took a stand Friday on Twitter:

If I own stock in your company and you move offshore for tax reasons I'm selling your stock. There are enough investment choices here — Mark Cuban (@mcuban) July 25, 2014

When companies move off shore to save on taxes, you and I make up the tax shortfall elsewhere sell those stocks and they won't move — Mark Cuban (@mcuban) July 25, 2014

Look at your portfolio holistically.A corp move may push up the stock. it may push up your taxes Taxes r forever. #costdontleavethesystem — Mark Cuban (@mcuban) July 25, 2014

The the latest debate is inspired by the pace of inversions, which has been speeding up. Pfizer (PZE) tried to buy London-based AstraZeneca (AZN) in a failed attempt to move its tax address to the UK. Bloomberg reports eight other moves are pending including that of Minneapolis company Medtronic. Companies like Walgreen (WAL) have reportedly looked at the idea. More broadly, more than 40 US companies have moved their addresses to lower tax countries since 1982, often through a takeover of a smaller company.

Related: Murdoch sale of European assets could fund Time Warner bid

While plenty of politicians have talked about reforming the flawed tax code, they've yet to succeed on tax reform. So is a plea for "economic patriotism" a substitute for a change in policy? In the accompanying video, Yahoo Finance's Jeff Macke argues absolutely not, saying these companies aren't flouting patriotism, they are simply following the law. Check out the interview above for more.

More from Investing:

Amazon investors stunned by size of projected loss

Shorts destroyed: The risks of betting on a bubble bursting

'Neutral' sentiment signaling a big move is coming