blob: 1d7a24e3e6e7ce5c8fc02458f36242d90f6cc14c [file] [log] [blame]
Silviu Barangaf60be282016-05-09 11:10:44 +00001; 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
12define void @f1(float %f) {
13entry:
14 call void asm sideeffect "ldr $0, [sp]", "X" (float %f) nounwind
15
16 ret void
17}