blob: f3ded0e801ebfe2d0c0cca0c90c4fba387e947cb [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin | \
Dan Gohman6761ff52008-07-07 21:00:17 +00002; RUN: grep {stw r2, 32751}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003; RUN: llvm-as < %s | llc -march=ppc64 -mtriple=powerpc-apple-darwin | \
Dan Gohman6761ff52008-07-07 21:00:17 +00004; RUN: grep {stw r2, 32751}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005; RUN: llvm-as < %s | llc -march=ppc64 -mtriple=powerpc-apple-darwin | \
6; RUN: grep {std r2, 9024}
7
8define void @test() {
9 store i32 0, i32* inttoptr (i64 48725999 to i32*)
10 ret void
11}
12
13define void @test2() {
14 store i64 0, i64* inttoptr (i64 74560 to i64*)
15 ret void
16}
17