Owen Anderson | 654d544 | 2010-09-28 21:57:50 +0000 | [diff] [blame^] | 1 | ; RUN: llc < %s -mtriple=arm-apple-darwin -mcpu=cortex-a9 | FileCheck %s |
Evan Cheng | 3ef1c87 | 2010-09-10 01:29:16 +0000 | [diff] [blame] | 2 | ; rdar://8402126 |
| 3 | ; Make sure if-converter is not predicating vldmia and ldmia. These are |
| 4 | ; micro-coded and would have long issue latency even if predicated on |
| 5 | ; false predicate. |
| 6 | |
| 7 | %0 = type { float, float, float, float } |
| 8 | %pln = type { %vec, float } |
| 9 | %vec = type { [4 x float] } |
| 10 | |
| 11 | define arm_aapcs_vfpcc float @aaa(%vec* nocapture %ustart, %vec* nocapture %udir, %vec* nocapture %vstart, %vec* nocapture %vdir, %vec* %upoint, %vec* %vpoint) { |
| 12 | ; CHECK: aaa: |
| 13 | ; CHECK: vldr.32 |
| 14 | ; CHECK-NOT: vldrne |
Jim Grosbach | e6be85e | 2010-09-17 22:36:38 +0000 | [diff] [blame] | 15 | ; CHECK-NOT: vpopne |
| 16 | ; CHECK-NOT: popne |
| 17 | ; CHECK: vpop |
| 18 | ; CHECK: pop |
Evan Cheng | 3ef1c87 | 2010-09-10 01:29:16 +0000 | [diff] [blame] | 19 | entry: |
| 20 | br i1 undef, label %bb81, label %bb48 |
| 21 | |
| 22 | bb48: ; preds = %entry |
| 23 | %0 = call arm_aapcs_vfpcc %0 @bbb(%pln* undef, %vec* %vstart, %vec* undef) nounwind ; <%0> [#uses=0] |
| 24 | ret float 0.000000e+00 |
| 25 | |
| 26 | bb81: ; preds = %entry |
| 27 | ret float 0.000000e+00 |
| 28 | } |
| 29 | |
| 30 | declare arm_aapcs_vfpcc %0 @bbb(%pln* nocapture, %vec* nocapture, %vec* nocapture) nounwind |