2016-08-30 16:09:45 +08:00
|
|
|
// RUN: %clang_cc1 -S -fdenormal-fp-math=ieee %s -emit-llvm -o - | FileCheck %s --check-prefix=CHECK-IEEE
|
|
|
|
// RUN: %clang_cc1 -S -fdenormal-fp-math=preserve-sign %s -emit-llvm -o - | FileCheck %s --check-prefix=CHECK-PS
|
|
|
|
// RUN: %clang_cc1 -S -fdenormal-fp-math=positive-zero %s -emit-llvm -o - | FileCheck %s --check-prefix=CHECK-PZ
|
|
|
|
|
|
|
|
// CHECK-LABEL: main
|
2019-11-07 02:26:43 +08:00
|
|
|
|
|
|
|
// The ieee,ieee is the default, so omit the attribute
|
|
|
|
// CHECK-IEEE-NOT:"denormal-fp-math"
|
2019-11-07 09:10:52 +08:00
|
|
|
// CHECK-PS: attributes #0 = {{.*}}"denormal-fp-math"="preserve-sign,preserve-sign"{{.*}}
|
|
|
|
// CHECK-PZ: attributes #0 = {{.*}}"denormal-fp-math"="positive-zero,positive-zero"{{.*}}
|
2016-08-30 16:09:45 +08:00
|
|
|
|
2022-02-16 05:06:01 +08:00
|
|
|
int main(void) {
|
2016-08-30 16:09:45 +08:00
|
|
|
return 0;
|
|
|
|
}
|