Home | History | Annotate | Download | only in SystemZ
      1 ; Test the FPR constraint "f".
      2 ;
      3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -no-integrated-as | FileCheck %s
      4 
      5 define float @f1() {
      6 ; CHECK-LABEL: f1:
      7 ; CHECK: lzer %f1
      8 ; CHECK: blah %f0 %f1
      9 ; CHECK: br %r14
     10   %val = call float asm "blah $0 $1", "=&f,f" (float 0.0)
     11   ret float %val
     12 }
     13 
     14 define double @f2() {
     15 ; CHECK-LABEL: f2:
     16 ; CHECK: lzdr %f1
     17 ; CHECK: blah %f0 %f1
     18 ; CHECK: br %r14
     19   %val = call double asm "blah $0 $1", "=&f,f" (double 0.0)
     20   ret double %val
     21 }
     22 
     23 define double @f3() {
     24 ; CHECK-LABEL: f3:
     25 ; CHECK: lzxr %f1
     26 ; CHECK: blah %f0 %f1
     27 ; CHECK: br %r14
     28   %val = call double asm "blah $0 $1", "=&f,f" (fp128 0xL00000000000000000000000000000000)
     29   ret double %val
     30 }
     31