brintos

brintos / llvm-project-archived public Read only

0
0
Text · 467 B · d6393e8 Raw
18 lines · plain
1; RUN: llc -mtriple=aarch64 -mattr=-fp-armv8 %s -o - | FileCheck %s  -check-prefix=nofp2 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: f17; 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 12define void @f1(float %f) {13entry:14  call void asm sideeffect "ldr $0, [sp]", "X" (float %f) nounwind15 16  ret void17}18