annotate test/CodeGen/SystemZ/tdc-07.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 the Test Data Class instruction 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 i32 @llvm.s390.tdc.f128(fp128, i64)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
6
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
7 ; Check using as i32 - f128
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
8 define i32 @f3(fp128 %x) {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
9 ; CHECK-LABEL: f3
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
10 ; CHECK: vl %v0, 0(%r2)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
11 ; CHECK: vrepg %v2, %v0, 1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
12 ; CHECK: tcxb %f0, 123
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
13 ; CHECK: ipm %r2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
14 ; CHECK: srl %r2, 28
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
15 %res = call i32 @llvm.s390.tdc.f128(fp128 %x, i64 123)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
16 ret i32 %res
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
17 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
18