xref: /llvm-project/clang/test/Driver/default-denormal-fp-math.c (revision 63ecd2a72523fa591aacf54d310478aabcd30d08)
1 // RUN: %clang -### -target arm-unknown-linux-gnu -c %s -v 2>&1 | FileCheck -check-prefix=CHECK-IEEE %s
2 // RUN: %clang -### -target i386-unknown-linux-gnu -c %s -v 2>&1 | FileCheck -check-prefix=CHECK-IEEE %s
3 
4 // RUN: %clang -### -target x86_64-unknown-linux-gnu --sysroot=%S/Inputs/basic_linux_tree -c %s -v 2>&1 | FileCheck -check-prefix=CHECK-IEEE %s
5 
6 // RUN: %clang -### -target x86_64-scei-ps4 -c %s -v 2>&1 | FileCheck -check-prefix=CHECK-PRESERVESIGN %s
7 
8 // Flag omitted for default
9 // CHECK-IEEE-NOT: -fdenormal-fp-math
10 // CHECK-PRESERVESIGN: -fdenormal-fp-math=preserve-sign,preserve-sign
11