annotate test/CodeGen/SystemZ/fp-sqrt-04.ll @ 128:c347d3398279 default tip

fix
author mir3636
date Wed, 06 Dec 2017 14:37:17 +0900
parents 803732b1fca8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
1 ; Test 128-bit floating-point square root on z14.
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
2 ;
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 | FileCheck %s
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
4
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
5 declare fp128 @llvm.sqrt.f128(fp128 %f)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
6
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
7 define void @f1(fp128 *%ptr) {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
8 ; CHECK-LABEL: f1:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
9 ; CHECK-DAG: vl [[REG:%v[0-9]+]], 0(%r2)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
10 ; CHECK: wfsqxb [[RES:%v[0-9]+]], [[REG]]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
11 ; CHECK: vst [[RES]], 0(%r2)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
12 ; CHECK: br %r14
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
13 %f = load fp128, fp128 *%ptr
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
14 %res = call fp128 @llvm.sqrt.f128(fp128 %f)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
15 store fp128 %res, fp128 *%ptr
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
16 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
17 }