llvm-project/llvm/test/CodeGen/AArch64/inlineasm-X-allocation.ll
Fangrui Song d39b4ce3ce [test] Replace aarch64-*-eabi with aarch64
Using "eabi" for aarch64 targets is a common mistake and warned by Clang Driver.
We want to avoid it elsewhere as well. Just use the common "aarch64" without
other triple components.
2023-06-27 20:02:52 -07:00

18 lines
467 B
LLVM

; RUN: llc -mtriple=aarch64 -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
}