Home | History | Annotate | Download | only in AArch64
      1 ; RUN: llc -verify-machineinstrs < %s -mtriple=aarch64-none-linux-gnu | FileCheck %s
      2 
      3 @varf32 = global float 0.0
      4 @varf64 = global double 0.0
      5 
      6 define void @check_float() {
      7 ; CHECK-LABEL: check_float:
      8 
      9   %val = load float* @varf32
     10   %newval1 = fadd float %val, 8.5
     11   store volatile float %newval1, float* @varf32
     12 ; CHECK: fmov {{s[0-9]+}}, #8.5
     13 
     14   %newval2 = fadd float %val, 128.0
     15   store volatile float %newval2, float* @varf32
     16 ; CHECK: ldr {{s[0-9]+}}, [{{x[0-9]+}}, #:lo12:.LCPI0_0
     17 
     18   ret void
     19 }
     20 
     21 define void @check_double() {
     22 ; CHECK-LABEL: check_double:
     23 
     24   %val = load double* @varf64
     25   %newval1 = fadd double %val, 8.5
     26   store volatile double %newval1, double* @varf64
     27 ; CHECK: fmov {{d[0-9]+}}, #8.5
     28 
     29   %newval2 = fadd double %val, 128.0
     30   store volatile double %newval2, double* @varf64
     31 ; CHECK: ldr {{d[0-9]+}}, [{{x[0-9]+}}, #:lo12:.LCPI1_0
     32 
     33   ret void
     34 }
     35