OSDN Git Service

fix some assumptions that pointers can only be 32-bits. With this, we can
authorChris Lattner <sabre@nondot.org>
Fri, 16 Jun 2006 21:01:35 +0000 (21:01 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 16 Jun 2006 21:01:35 +0000 (21:01 +0000)
commit059ca0f5b712e5460dcbccfa802b7adb3bccbac9
tree59eaef85631eca776526132022a7ecb675a222c8
parent956f43c3109f207bb91ef5f5a3cb12303ed28f8c
fix some assumptions that pointers can only be 32-bits.  With this, we can
now compile:

static unsigned long X;
void test1() {
  X = 0;
}

into:

_test1:
        lis r2, ha16(_X)
        li r3, 0
        stw r3, lo16(_X)(r2)
        blr

Totally amazing :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28839 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCInstr64Bit.td
lib/Target/PowerPC/PPCInstrInfo.td