OSDN Git Service

Add some patterns for globals, so we can now compile this:
authorChris Lattner <sabre@nondot.org>
Tue, 20 Jun 2006 21:23:06 +0000 (21:23 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 20 Jun 2006 21:23:06 +0000 (21:23 +0000)
commitf27bb6de10b8a1b4b2e52b137ffda68c6ba0b9f4
tree50f2ecded78a885f9e1faec1c3b05a5adcc51a57
parent094ee721cc12907151ccef41a627078594260836
Add some patterns for globals, so we can now compile this:

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

into:

_test1:
        lis r2, ha16(_Y)
        lis r3, ha16(_X)
        ld r2, lo16(_Y)(r2)
        std r2, lo16(_X)(r3)
        blr

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