brintos

brintos / llvm-project-archived public Read only

0
0
Text · 952 B · 124c0f0 Raw
17 lines · cpp
1// RUN: %clang_cc1 -triple mips64-linux-gnu -frounding-math -ffp-exception-behavior=strict -O2 -verify=rounding,exception -emit-llvm -o - %s | FileCheck %s2// RUN: %clang_cc1 -triple mips64-linux-gnu -ffp-exception-behavior=strict -O2 -verify=exception -emit-llvm -o - %s | FileCheck %s3// RUN: %clang_cc1 -triple mips64-linux-gnu -frounding-math -O2 -verify=rounding -emit-llvm -o - %s | FileCheck %s4//5// Verify that constrained intrinsics are not used.6// As more targets gain support for constrained intrinsics the triple7// in this test will need to change.8 9// rounding-warning@* {{overriding currently unsupported rounding mode on this target}}10// exception-warning@* {{overriding currently unsupported use of floating point exceptions on this target}}11float fp_precise_1(float a, float b, float c) {12// CHECK: define{{.*}} float @_Z12fp_precise_1fff13// CHECK: %[[M:.+]] = fmul float{{.*}}14// CHECK: fadd float %[[M]], %c15  return a * b + c;16}17