2009-10-14 13:57:32 -04:00
|
|
|
; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin | \
|
2013-04-08 14:41:23 -04:00
|
|
|
; RUN: grep "stw r3, 32751"
|
2009-10-14 13:57:32 -04:00
|
|
|
; RUN: llc < %s -march=ppc64 -mtriple=powerpc-apple-darwin | \
|
2013-04-08 14:41:23 -04:00
|
|
|
; RUN: grep "stw r3, 32751"
|
2009-10-14 13:57:32 -04:00
|
|
|
; RUN: llc < %s -march=ppc64 -mtriple=powerpc-apple-darwin | \
|
2013-04-08 14:41:23 -04:00
|
|
|
; RUN: grep "std r3, 9024"
|
2009-06-02 13:52:33 -04:00
|
|
|
|
2010-03-03 12:27:15 -05:00
|
|
|
define void @test() nounwind {
|
2009-06-02 13:52:33 -04:00
|
|
|
store i32 0, i32* inttoptr (i64 48725999 to i32*)
|
|
|
|
|
ret void
|
|
|
|
|
}
|
|
|
|
|
|
2010-03-03 12:27:15 -05:00
|
|
|
define void @test2() nounwind {
|
2009-06-02 13:52:33 -04:00
|
|
|
store i64 0, i64* inttoptr (i64 74560 to i64*)
|
|
|
|
|
ret void
|
|
|
|
|
}
|
|
|
|
|
|