| Dan Gohman | c8054d9 | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=ppc32 | \ | 
| Chandler Carruth | a5a29f9 | 2012-07-02 12:47:22 +0000 | [diff] [blame] | 2 | ; RUN:   not grep "stw r31, 20(r1)" | 
| Dan Gohman | c8054d9 | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 3 | ; RUN: llc < %s -march=ppc32 | \ | 
| Chandler Carruth | a5a29f9 | 2012-07-02 12:47:22 +0000 | [diff] [blame] | 4 | ; RUN:   not grep "stwu r1, -.*(r1)" | 
| Dan Gohman | c8054d9 | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 5 | ; RUN: llc < %s -march=ppc32 | \ | 
| Chandler Carruth | a5a29f9 | 2012-07-02 12:47:22 +0000 | [diff] [blame] | 6 | ; RUN:   not grep "addi r1, r1, " | 
| Dan Gohman | c8054d9 | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 7 | ; RUN: llc < %s -march=ppc32 | \ | 
| Chandler Carruth | a5a29f9 | 2012-07-02 12:47:22 +0000 | [diff] [blame] | 8 | ; RUN:   not grep "lwz r31, 20(r1)" | 
| Dan Gohman | c8054d9 | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 9 | ; RUN: llc < %s -march=ppc32 -disable-fp-elim | \ | 
| Chandler Carruth | a5a29f9 | 2012-07-02 12:47:22 +0000 | [diff] [blame] | 10 | ; RUN:   not grep "stw r31, 20(r1)" | 
| Dan Gohman | c8054d9 | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 11 | ; RUN: llc < %s -march=ppc32 -disable-fp-elim | \ | 
| Chandler Carruth | a5a29f9 | 2012-07-02 12:47:22 +0000 | [diff] [blame] | 12 | ; RUN:   not grep "stwu r1, -.*(r1)" | 
| Dan Gohman | c8054d9 | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 13 | ; RUN: llc < %s -march=ppc32 -disable-fp-elim | \ | 
| Chandler Carruth | a5a29f9 | 2012-07-02 12:47:22 +0000 | [diff] [blame] | 14 | ; RUN:   not grep "addi r1, r1, " | 
| Dan Gohman | c8054d9 | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 15 | ; RUN: llc < %s -march=ppc32 -disable-fp-elim | \ | 
| Chandler Carruth | a5a29f9 | 2012-07-02 12:47:22 +0000 | [diff] [blame] | 16 | ; RUN:   not grep "lwz r31, 20(r1)" | 
| Dan Gohman | c8054d9 | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 17 | ; RUN: llc < %s -march=ppc64 | \ | 
| Chandler Carruth | a5a29f9 | 2012-07-02 12:47:22 +0000 | [diff] [blame] | 18 | ; RUN:   not grep "std r31, 40(r1)" | 
| Dan Gohman | c8054d9 | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 19 | ; RUN: llc < %s -march=ppc64 | \ | 
| Chandler Carruth | a5a29f9 | 2012-07-02 12:47:22 +0000 | [diff] [blame] | 20 | ; RUN:   not grep "stdu r1, -.*(r1)" | 
| Dan Gohman | c8054d9 | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 21 | ; RUN: llc < %s -march=ppc64 | \ | 
| Chandler Carruth | a5a29f9 | 2012-07-02 12:47:22 +0000 | [diff] [blame] | 22 | ; RUN:   not grep "addi r1, r1, " | 
| Dan Gohman | c8054d9 | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 23 | ; RUN: llc < %s -march=ppc64 | \ | 
| Chandler Carruth | a5a29f9 | 2012-07-02 12:47:22 +0000 | [diff] [blame] | 24 | ; RUN:   not grep "ld r31, 40(r1)" | 
| Dan Gohman | c8054d9 | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 25 | ; RUN: llc < %s -march=ppc64 -disable-fp-elim | \ | 
| Chandler Carruth | a5a29f9 | 2012-07-02 12:47:22 +0000 | [diff] [blame] | 26 | ; RUN:   not grep "stw r31, 40(r1)" | 
| Dan Gohman | c8054d9 | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 27 | ; RUN: llc < %s -march=ppc64 -disable-fp-elim | \ | 
| Chandler Carruth | a5a29f9 | 2012-07-02 12:47:22 +0000 | [diff] [blame] | 28 | ; RUN:   not grep "stdu r1, -.*(r1)" | 
| Dan Gohman | c8054d9 | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 29 | ; RUN: llc < %s -march=ppc64 -disable-fp-elim | \ | 
| Chandler Carruth | a5a29f9 | 2012-07-02 12:47:22 +0000 | [diff] [blame] | 30 | ; RUN:   not grep "addi r1, r1, " | 
| Dan Gohman | c8054d9 | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 31 | ; RUN: llc < %s -march=ppc64 -disable-fp-elim | \ | 
| Chandler Carruth | a5a29f9 | 2012-07-02 12:47:22 +0000 | [diff] [blame] | 32 | ; RUN:   not grep "ld r31, 40(r1)" | 
| Jim Laskey | 6684f2f | 2006-11-17 16:54:21 +0000 | [diff] [blame] | 33 |  | 
| Tanya Lattner | 8bf97c2 | 2008-03-25 04:26:08 +0000 | [diff] [blame] | 34 | define i32* @f1() { | 
|  | 35 | %tmp = alloca i32, i32 2                ; <i32*> [#uses=1] | 
|  | 36 | ret i32* %tmp | 
| Jim Laskey | 6684f2f | 2006-11-17 16:54:21 +0000 | [diff] [blame] | 37 | } |