• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -mtriple=arm64-none-linux-gnu -mattr=-neon < %s | FileCheck %s
2
3define float @copy_FPR32(float %a, float %b) {
4;CHECK-LABEL: copy_FPR32:
5;CHECK: fmov s0, s1
6  ret float %b;
7}
8
9define double @copy_FPR64(double %a, double %b) {
10;CHECK-LABEL: copy_FPR64:
11;CHECK: fmov d0, d1
12  ret double %b;
13}
14
15define fp128 @copy_FPR128(fp128 %a, fp128 %b) {
16;CHECK-LABEL: copy_FPR128:
17;CHECK: str	q1, [sp, #-16]!
18;CHECK-NEXT: ldr	q0, [sp, #16]!
19  ret fp128 %b;
20}
21