Fix int foo() { return 65535; } by using the top 16 bits of the constant
authorNate Begeman <natebegeman@mac.com>
Thu, 18 Aug 2005 18:14:49 +0000 (18:14 +0000)
committerNate Begeman <natebegeman@mac.com>
Thu, 18 Aug 2005 18:14:49 +0000 (18:14 +0000)
commit58dfb08319b1415637b36c16ce52d6424c254574
tree0bd16cb207582312fd9eb64942e3bcb50f631369
parenta69404781344c4aee05935ee921bbf2844911bc0
Fix int foo() { return 65535; } by using the top 16 bits of the constant
as the argument to LIS rather than the result of HA16(constant).

The DAG->DAG ISel was already doing the right thing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22865 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelPattern.cpp