blob: b10a9968676309456581d8698aeeb2073b562ced [file] [log] [blame]
Dan Gohmanda594cf2009-09-09 00:09:15 +00001; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin | \
Chris Lattnerdeb48432010-02-24 06:11:37 +00002; RUN: grep {stw r3, 32751}
Dan Gohmanda594cf2009-09-09 00:09:15 +00003; RUN: llc < %s -march=ppc64 -mtriple=powerpc-apple-darwin | \
Chris Lattnerdeb48432010-02-24 06:11:37 +00004; RUN: grep {stw r3, 32751}
Dan Gohmanda594cf2009-09-09 00:09:15 +00005; RUN: llc < %s -march=ppc64 -mtriple=powerpc-apple-darwin | \
Dale Johannesena8b713c2010-02-16 22:31:31 +00006; RUN: grep {std r3, 9024}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007
Chris Lattner1d1e1c02010-02-21 20:33:20 +00008define void @test() nounwind {
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009 store i32 0, i32* inttoptr (i64 48725999 to i32*)
10 ret void
11}
12
Chris Lattner1d1e1c02010-02-21 20:33:20 +000013define void @test2() nounwind {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014 store i64 0, i64* inttoptr (i64 74560 to i64*)
15 ret void
16}
17