1 ; RUN: llc -verify-machineinstrs -mtriple=powerpc-unknown-linux-gnu < %s | FileCheck %s
3 declare float @fminf(float, float)
4 declare double @fmin(double, double)
5 declare ppc_fp128 @fminl(ppc_fp128, ppc_fp128)
6 declare float @llvm.minnum.f32(float, float)
7 declare double @llvm.minnum.f64(double, double)
8 declare ppc_fp128 @llvm.minnum.ppcf128(ppc_fp128, ppc_fp128)
10 declare <2 x float> @llvm.minnum.v2f32(<2 x float>, <2 x float>)
11 declare <4 x float> @llvm.minnum.v4f32(<4 x float>, <4 x float>)
12 declare <8 x float> @llvm.minnum.v8f32(<8 x float>, <8 x float>)
14 ; CHECK-LABEL: @test_fminf
16 define float @test_fminf(float %x, float %y) {
17 %z = call float @fminf(float %x, float %y) readnone
21 ; CHECK-LABEL: @test_fmin
23 define double @test_fmin(double %x, double %y) {
24 %z = call double @fmin(double %x, double %y) readnone
28 ; CHECK-LABEL: @test_fminl
30 define ppc_fp128 @test_fminl(ppc_fp128 %x, ppc_fp128 %y) {
31 %z = call ppc_fp128 @fminl(ppc_fp128 %x, ppc_fp128 %y) readnone
35 ; CHECK-LABEL: @test_intrinsic_fmin_f32
37 define float @test_intrinsic_fmin_f32(float %x, float %y) {
38 %z = call float @llvm.minnum.f32(float %x, float %y) readnone
42 ; CHECK-LABEL: @test_intrinsic_fmin_f64
44 define double @test_intrinsic_fmin_f64(double %x, double %y) {
45 %z = call double @llvm.minnum.f64(double %x, double %y) readnone
49 ; CHECK-LABEL: @test_intrinsic_fmin_f128
51 define ppc_fp128 @test_intrinsic_fmin_f128(ppc_fp128 %x, ppc_fp128 %y) {
52 %z = call ppc_fp128 @llvm.minnum.ppcf128(ppc_fp128 %x, ppc_fp128 %y) readnone
56 ; CHECK-LABEL: @test_intrinsic_fminf_v2f32
59 define <2 x float> @test_intrinsic_fminf_v2f32(<2 x float> %x, <2 x float> %y) {
60 %z = call <2 x float> @llvm.minnum.v2f32(<2 x float> %x, <2 x float> %y) readnone
64 ; CHECK-LABEL: @test_intrinsic_fmin_v4f32
69 define <4 x float> @test_intrinsic_fmin_v4f32(<4 x float> %x, <4 x float> %y) {
70 %z = call <4 x float> @llvm.minnum.v4f32(<4 x float> %x, <4 x float> %y) readnone
74 ; CHECK-LABEL: @test_intrinsic_fmin_v8f32
83 define <8 x float> @test_intrinsic_fmin_v8f32(<8 x float> %x, <8 x float> %y) {
84 %z = call <8 x float> @llvm.minnum.v8f32(<8 x float> %x, <8 x float> %y) readnone