fp-strict-minmax.ll
2.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -verify-machineinstrs -ppc-asm-full-reg-names -ppc-vsr-nums-as-vr \
; RUN: < %s -mtriple=powerpc64-unknown-linux -mcpu=pwr8 | FileCheck %s
; RUN: llc -verify-machineinstrs -ppc-asm-full-reg-names -ppc-vsr-nums-as-vr \
; RUN: < %s -mtriple=powerpc64le-unknown-linux -mcpu=pwr9 | FileCheck %s
declare <4 x float> @llvm.experimental.constrained.maxnum.v4f32(<4 x float>, <4 x float>, metadata)
declare <2 x double> @llvm.experimental.constrained.maxnum.v2f64(<2 x double>, <2 x double>, metadata)
declare <4 x float> @llvm.experimental.constrained.minnum.v4f32(<4 x float>, <4 x float>, metadata)
declare <2 x double> @llvm.experimental.constrained.minnum.v2f64(<2 x double>, <2 x double>, metadata)
define <4 x float> @fmaxnum_v4f32(<4 x float> %vf0, <4 x float> %vf1) #0 {
; CHECK-LABEL: fmaxnum_v4f32:
; CHECK: # %bb.0:
; CHECK-NEXT: xvmaxsp v2, v2, v3
; CHECK-NEXT: blr
%res = call <4 x float> @llvm.experimental.constrained.maxnum.v4f32(
<4 x float> %vf0, <4 x float> %vf1,
metadata !"fpexcept.strict") #0
ret <4 x float> %res
}
define <2 x double> @fmaxnum_v2f64(<2 x double> %vf0, <2 x double> %vf1) #0 {
; CHECK-LABEL: fmaxnum_v2f64:
; CHECK: # %bb.0:
; CHECK-NEXT: xvmaxdp v2, v2, v3
; CHECK-NEXT: blr
%res = call <2 x double> @llvm.experimental.constrained.maxnum.v2f64(
<2 x double> %vf0, <2 x double> %vf1,
metadata !"fpexcept.strict") #0
ret <2 x double> %res
}
define <4 x float> @fminnum_v4f32(<4 x float> %vf0, <4 x float> %vf1) #0 {
; CHECK-LABEL: fminnum_v4f32:
; CHECK: # %bb.0:
; CHECK-NEXT: xvminsp v2, v2, v3
; CHECK-NEXT: blr
%res = call <4 x float> @llvm.experimental.constrained.minnum.v4f32(
<4 x float> %vf0, <4 x float> %vf1,
metadata !"fpexcept.strict") #0
ret <4 x float> %res
}
define <2 x double> @fminnum_v2f64(<2 x double> %vf0, <2 x double> %vf1) #0 {
; CHECK-LABEL: fminnum_v2f64:
; CHECK: # %bb.0:
; CHECK-NEXT: xvmindp v2, v2, v3
; CHECK-NEXT: blr
%res = call <2 x double> @llvm.experimental.constrained.minnum.v2f64(
<2 x double> %vf0, <2 x double> %vf1,
metadata !"fpexcept.strict") #0
ret <2 x double> %res
}
attributes #0 = { strictfp }