annotate test/CodeGen/SystemZ/fp-add-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 addition 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 define void @f1(fp128 *%ptr1, fp128 *%ptr2) {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
6 ; CHECK-LABEL: f1:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
7 ; CHECK-DAG: vl [[REG1:%v[0-9]+]], 0(%r2)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
8 ; CHECK-DAG: vl [[REG2:%v[0-9]+]], 0(%r3)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
9 ; CHECK: wfaxb [[RES:%v[0-9]+]], [[REG1]], [[REG2]]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
10 ; CHECK: vst [[RES]], 0(%r2)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
11 ; CHECK: br %r14
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
12 %f1 = load fp128, fp128 *%ptr1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
13 %f2 = load fp128, fp128 *%ptr2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
14 %sum = fadd fp128 %f1, %f2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
15 store fp128 %sum, fp128 *%ptr1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
16 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
17 }