diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:41:05 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:41:05 +0000 |
| commit | 01095a5d43bbfde13731688ddcf6048ebb8b7721 (patch) | |
| tree | 4def12e759965de927d963ac65840d663ef9d1ea /test/CodeGen/AArch64/inlineasm-X-allocation.ll | |
| parent | f0f4822ed4b66e3579e92a89f368f8fb860e218e (diff) | |
Notes
Diffstat (limited to 'test/CodeGen/AArch64/inlineasm-X-allocation.ll')
| -rw-r--r-- | test/CodeGen/AArch64/inlineasm-X-allocation.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeGen/AArch64/inlineasm-X-allocation.ll b/test/CodeGen/AArch64/inlineasm-X-allocation.ll new file mode 100644 index 000000000000..1d7a24e3e6e7 --- /dev/null +++ b/test/CodeGen/AArch64/inlineasm-X-allocation.ll @@ -0,0 +1,17 @@ +; 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 +} |
