blob: e8765deab05db4a7ebcadb3f3864da8090fac16f [file] [log] [blame]
Dan Gohmanc8054d92009-09-09 00:09:15 +00001; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin | \
Hal Finkel01271c62013-03-12 15:18:14 +00002; RUN: grep "stw r3, 32751"
Dan Gohmanc8054d92009-09-09 00:09:15 +00003; RUN: llc < %s -march=ppc64 -mtriple=powerpc-apple-darwin | \
Hal Finkel01271c62013-03-12 15:18:14 +00004; RUN: grep "stw r3, 32751"
Dan Gohmanc8054d92009-09-09 00:09:15 +00005; RUN: llc < %s -march=ppc64 -mtriple=powerpc-apple-darwin | \
Hal Finkel01271c62013-03-12 15:18:14 +00006; RUN: grep "std r3, 9024"
Chris Lattner2be2ab52007-02-17 06:41:57 +00007
Chris Lattner745219e2010-02-21 20:33:20 +00008define void @test() nounwind {
Chris Lattner2be2ab52007-02-17 06:41:57 +00009 store i32 0, i32* inttoptr (i64 48725999 to i32*)
10 ret void
11}
12
Chris Lattner745219e2010-02-21 20:33:20 +000013define void @test2() nounwind {
Chris Lattner3723c902007-02-17 06:57:11 +000014 store i64 0, i64* inttoptr (i64 74560 to i64*)
15 ret void
16}
17