Changeset View
Changeset View
Standalone View
Standalone View
clang/test/CodeGen/builtin_float_strictfp.c
// RUN: %clang_cc1 -no-opaque-pointers -emit-llvm -triple x86_64-windows-pc -ffp-exception-behavior=maytrap -o - %s | FileCheck %s --check-prefixes=CHECK,FP16 | // RUN: %clang_cc1 -no-opaque-pointers -emit-llvm -triple x86_64-windows-pc -ffp-exception-behavior=maytrap -o - %s | FileCheck %s --check-prefixes=CHECK,FP16 | ||||
// RUN: %clang_cc1 -no-opaque-pointers -emit-llvm -triple ppc64-be -ffp-exception-behavior=maytrap -o - %s | FileCheck %s --check-prefixes=CHECK,NOFP16 | // RUN: %clang_cc1 -no-opaque-pointers -emit-llvm -triple ppc64-be -ffp-exception-behavior=maytrap -o - %s | FileCheck %s --check-prefixes=CHECK,NOFP16 | ||||
// RUN: %clang_cc1 -no-opaque-pointers -emit-llvm -triple riscv64 -ffp-exception-behavior=maytrap -o - %s | FileCheck %s --check-prefixes=CHECK,FP16 | |||||
craig.topper: I just picked a test to have some coverage that the strict FP is enabled. Most strict FP tests… | |||||
Not Done ReplyInline ActionsI think it would be worth at least having coverage for the logic that disables strict FP if vector extensions are enabled. asb: I think it would be worth at least having coverage for the logic that disables strict FP if… | |||||
// test to ensure that these builtins don't do the variadic promotion of float->double. | // test to ensure that these builtins don't do the variadic promotion of float->double. | ||||
// Test that the constrained intrinsics are picking up the exception | // Test that the constrained intrinsics are picking up the exception | ||||
// metadata from the AST instead of the global default from the command line. | // metadata from the AST instead of the global default from the command line. | ||||
#pragma float_control(except, on) | #pragma float_control(except, on) | ||||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |
I just picked a test to have some coverage that the strict FP is enabled. Most strict FP tests use -Xclang -fexperimental-strict-floating-point to avoid needing a specific target.