| 1 | // RUN: %clang -### -target arm-unknown-linux-gnu -c %s -fdenormal-fp-math=ieee -v 2>&1 | FileCheck -check-prefix=CHECK-IEEE %s |
| 2 | // RUN: %clang -### -target arm-unknown-linux-gnu -c %s -fdenormal-fp-math=preserve-sign -v 2>&1 | FileCheck -check-prefix=CHECK-PS %s |
| 3 | // RUN: %clang -### -target arm-unknown-linux-gnu -c %s -fdenormal-fp-math=positive-zero -v 2>&1 | FileCheck -check-prefix=CHECK-PZ %s |
| 4 | // RUN: %clang -### -target arm-unknown-linux-gnu -c %s -fdenormal-fp-math=ieee -fno-fast-math -v 2>&1 | FileCheck -check-prefix=CHECK-NO-UNSAFE %s |
| 5 | // RUN: %clang -### -target arm-unknown-linux-gnu -c %s -fdenormal-fp-math=ieee -fno-unsafe-math-optimizations -v 2>&1 | FileCheck -check-prefix=CHECK-NO-UNSAFE %s |
| 6 | // RUN: not %clang -target arm-unknown-linux-gnu -c %s -fdenormal-fp-math=foo -v 2>&1 | FileCheck -check-prefix=CHECK-INVALID %s |
| 7 | |
| 8 | // CHECK-IEEE: "-fdenormal-fp-math=ieee" |
| 9 | // CHECK-PS: "-fdenormal-fp-math=preserve-sign" |
| 10 | // CHECK-PZ: "-fdenormal-fp-math=positive-zero" |
| 11 | // CHECK-NO-UNSAFE-NOT: "-fdenormal-fp-math=ieee" |
| 12 | // CHECK-INVALID: error: invalid value 'foo' in '-fdenormal-fp-math=foo' |
| 13 | |