• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu | FileCheck %s -check-prefix=PPC32
2; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s -check-prefix=PPC64
3
4; PPC32: test
5; PPC32: 4, 32751(3)
6; PPC32: blr
7; PPC64: test
8; PPC64: 4, 32751(3)
9; PPC64: blr
10define void @test() nounwind {
11	store i32 0, i32* inttoptr (i64 48725999 to i32*)
12	ret void
13}
14
15; PPC32: test2
16; PPC32: stw 4, 9028(3)
17; PPC32: stw 4, 9024(3)
18; PPC32: blr
19; PPC64: test2
20; PPC64: std 4, 9024(3)
21; PPC64: blr
22define void @test2() nounwind {
23	store i64 0, i64* inttoptr (i64 74560 to i64*)
24	ret void
25}
26
27