Silviu Baranga | f60be28 | 2016-05-09 11:10:44 +0000 | [diff] [blame] | 1 | ; RUN: llc -mtriple=aarch64-none-eabi -mattr=-fp-armv8 %s -o - | FileCheck %s -check-prefix=nofp |
| 2 | |
| 3 | ; In the novfp case, the compiler is forced to assign a core register, |
| 4 | ; even if the input is a float. |
| 5 | |
| 6 | ; nofp-LABEL: f1 |
| 7 | ; nofp-CHECK: ldr x0, [sp] |
| 8 | |
| 9 | ; This can be generated by a function such as: |
| 10 | ; void f1(float f) {asm volatile ("ldr $0, [sp]" : : "X" (f));} |
| 11 | |
| 12 | define void @f1(float %f) { |
| 13 | entry: |
| 14 | call void asm sideeffect "ldr $0, [sp]", "X" (float %f) nounwind |
| 15 | |
| 16 | ret void |
| 17 | } |