|
| 1 | +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5 |
| 2 | +; RUN: llc -mtriple=arm-none-eabihf -mcpu=cortex-a55 < %s | FileCheck %s |
| 3 | + |
| 4 | +; Test that the override of shouldRewriteCopySrc does something |
| 5 | + |
| 6 | +define float @shouldRewriteCopySrc(double %arg) #0 { |
| 7 | +; CHECK-LABEL: shouldRewriteCopySrc: |
| 8 | +; CHECK: @ %bb.0: @ %bb |
| 9 | +; CHECK-NEXT: .vsave {d8, d9, d10, d11, d12, d13, d14, d15} |
| 10 | +; CHECK-NEXT: vpush {d8, d9, d10, d11, d12, d13, d14, d15} |
| 11 | +; CHECK-NEXT: vadd.f64 d16, d0, d0 |
| 12 | +; CHECK-NEXT: @APP |
| 13 | +; CHECK-NEXT: nop |
| 14 | +; CHECK-NEXT: @NO_APP |
| 15 | +; CHECK-NEXT: vmov r0, r1, d16 |
| 16 | +; CHECK-NEXT: vmov s0, r0 |
| 17 | +; CHECK-NEXT: vpop {d8, d9, d10, d11, d12, d13, d14, d15} |
| 18 | +; CHECK-NEXT: bx lr |
| 19 | +bb: |
| 20 | + %i = fadd double %arg, %arg |
| 21 | + tail call void asm sideeffect "nop", "~{q0},~{q1},~{q2},~{q3},~{q4},~{q5},~{q6},~{q7}"() #0 |
| 22 | + %i1 = bitcast double %i to i64 |
| 23 | + %i2 = trunc i64 %i1 to i32 |
| 24 | + %i3 = bitcast i32 %i2 to float |
| 25 | + ret float %i3 |
| 26 | +} |
| 27 | + |
| 28 | +attributes #0 = { nounwind } |
0 commit comments