Home | History | Annotate | Download | only in SystemZ
      1 ; Test 128-bit square root.
      2 ;
      3 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
      4 
      5 declare fp128 @llvm.sqrt.f128(fp128 %f)
      6 
      7 ; There's no memory form of SQXBR.
      8 define void @f1(fp128 *%ptr) {
      9 ; CHECK-LABEL: f1:
     10 ; CHECK: ld %f0, 0(%r2)
     11 ; CHECK: ld %f2, 8(%r2)
     12 ; CHECK: sqxbr %f0, %f0
     13 ; CHECK: std %f0, 0(%r2)
     14 ; CHECK: std %f2, 8(%r2)
     15 ; CHECK: br %r14
     16   %orig = load fp128 *%ptr
     17   %sqrt = call fp128 @llvm.sqrt.f128(fp128 %orig)
     18   store fp128 %sqrt, fp128 *%ptr
     19   ret void
     20 }
     21