Jim Grosbach | 63b46fa | 2011-06-30 22:10:46 +0000 | [diff] [blame^] | 1 | ; RUN: llc -mtriple=thumbv7-apple-darwin10 < %s | FileCheck %s |
Cameron Zwarich | aaa5f14 | 2011-06-07 23:54:00 +0000 | [diff] [blame] | 2 | |
| 3 | %struct.op = type { %struct.op*, %struct.op*, %struct.op* ()*, i32, i16, i16, i8, i8 } |
| 4 | |
| 5 | ; CHECK: Perl_ck_sort |
Jim Grosbach | 63b46fa | 2011-06-30 22:10:46 +0000 | [diff] [blame^] | 6 | ; CHECK: ldreq |
| 7 | ; CHECK: moveq [[REGISTER:(r[0-9]+)|(lr)]] |
| 8 | ; CHECK: streq {{(r[0-9])|(lr)}}, {{\[}}[[REGISTER]]{{\]}}, #24 |
Cameron Zwarich | aaa5f14 | 2011-06-07 23:54:00 +0000 | [diff] [blame] | 9 | |
| 10 | define void @Perl_ck_sort() nounwind optsize { |
| 11 | entry: |
| 12 | %tmp27 = load %struct.op** undef, align 4 |
| 13 | switch i16 undef, label %if.end151 [ |
| 14 | i16 178, label %if.then60 |
| 15 | i16 177, label %if.then60 |
| 16 | ] |
| 17 | |
| 18 | if.then60: ; preds = %if.then40 |
| 19 | br i1 undef, label %if.then67, label %if.end95 |
| 20 | |
| 21 | if.then67: ; preds = %if.then60 |
| 22 | %op_next71 = getelementptr inbounds %struct.op* %tmp27, i32 0, i32 0 |
| 23 | store %struct.op* %tmp27, %struct.op** %op_next71, align 4 |
| 24 | %0 = getelementptr inbounds %struct.op* %tmp27, i32 1, i32 0 |
| 25 | br label %if.end95 |
| 26 | |
| 27 | if.end95: ; preds = %if.else92, %if.then67 |
| 28 | %.pre-phi = phi %struct.op** [ undef, %if.then60 ], [ %0, %if.then67 ] |
| 29 | %tmp98 = load %struct.op** %.pre-phi, align 4 |
| 30 | br label %if.end151 |
| 31 | |
| 32 | if.end151: ; preds = %if.end100, %if.end, %entry |
| 33 | ret void |
| 34 | } |