• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; Test the Test Data Class instruction on z14
2;
3; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 | FileCheck %s
4
5declare i32 @llvm.s390.tdc.f128(fp128, i64)
6
7; Check using as i32 - f128
8define i32 @f3(fp128 %x) {
9; CHECK-LABEL: f3
10; CHECK: vl %v0, 0(%r2)
11; CHECK: vrepg  %v2, %v0, 1
12; CHECK: tcxb %f0, 123
13; CHECK: ipm %r2
14; CHECK: srl %r2, 28
15  %res = call i32 @llvm.s390.tdc.f128(fp128 %x, i64 123)
16  ret i32 %res
17}
18
19