Xamarin Public Jenkins (auto-signing) f32dbaf0b2 Imported Upstream version 5.18.0.225
Former-commit-id: 10196d987d5fc5564b9d3b33b1fdf13190f4d0b5
2018-12-21 19:01:49 +00:00

18 lines
477 B
LLVM

; RUN: llc -mtriple=aarch64-none-eabi -mattr=-fp-armv8 %s -o - | FileCheck %s -check-prefix=nofp
; In the novfp case, the compiler is forced to assign a core register,
; even if the input is a float.
; nofp-LABEL: f1
; nofp-CHECK: ldr x0, [sp]
; This can be generated by a function such as:
; void f1(float f) {asm volatile ("ldr $0, [sp]" : : "X" (f));}
define void @f1(float %f) {
entry:
call void asm sideeffect "ldr $0, [sp]", "X" (float %f) nounwind
ret void
}