Dan Gohman | da594cf | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin | \ |
Dale Johannesen | a8b713c | 2010-02-16 22:31:31 +0000 | [diff] [blame] | 2 | ; RUN: grep {stw r4, 32751} |
Dan Gohman | da594cf | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 3 | ; RUN: llc < %s -march=ppc64 -mtriple=powerpc-apple-darwin | \ |
Dale Johannesen | a8b713c | 2010-02-16 22:31:31 +0000 | [diff] [blame] | 4 | ; RUN: grep {stw r4, 32751} |
Dan Gohman | da594cf | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 5 | ; RUN: llc < %s -march=ppc64 -mtriple=powerpc-apple-darwin | \ |
Dale Johannesen | a8b713c | 2010-02-16 22:31:31 +0000 | [diff] [blame] | 6 | ; RUN: grep {std r3, 9024} |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 7 | |
Chris Lattner | 1d1e1c0 | 2010-02-21 20:33:20 +0000 | [diff] [blame^] | 8 | define void @test() nounwind { |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 9 | store i32 0, i32* inttoptr (i64 48725999 to i32*) |
| 10 | ret void |
| 11 | } |
| 12 | |
Chris Lattner | 1d1e1c0 | 2010-02-21 20:33:20 +0000 | [diff] [blame^] | 13 | define void @test2() nounwind { |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 14 | store i64 0, i64* inttoptr (i64 74560 to i64*) |
| 15 | ret void |
| 16 | } |
| 17 | |