1 // RUN: %clang_cc1 -triple i686-pc-linux -target-feature -sse %s
3 // RUN: %clang_cc1 -triple i686-pc-linux -target-feature -sse -mfpmath 387 %s
5 // RUN: %clang_cc1 -triple i686-pc-linux -target-feature +sse %s
7 // RUN: %clang_cc1 -triple i686-pc-linux -target-feature +sse -mfpmath sse %s
9 // RUN: not %clang_cc1 -triple i686-pc-linux -target-feature +sse \
10 // RUN: -mfpmath xyz %s 2>&1 | FileCheck --check-prefix=CHECK-XYZ %s
11 // CHECK-XYZ: error: unknown FP unit 'xyz'
13 // RUN: not %clang_cc1 -triple i686-pc-linux -target-feature +sse \
14 // RUN: -mfpmath 387 %s 2>&1 | FileCheck --check-prefix=CHECK-NO-387 %s
15 // CHECK-NO-387: error: the '387' unit is not supported with this instruction set
17 // RUN: not %clang_cc1 -triple i686-pc-linux -target-feature -sse \
18 // RUN: -mfpmath sse %s 2>&1 | FileCheck --check-prefix=CHECK-NO-SSE %s
19 // CHECK-NO-SSE: error: the 'sse' unit is not supported with this instruction set
22 // RUN: %clang_cc1 -triple arm-apple-darwin10 -mfpmath vfp %s
24 // RUN: %clang_cc1 -triple arm-apple-darwin10 -mfpmath vfp2 %s
26 // RUN: %clang_cc1 -triple arm-apple-darwin10 -mfpmath vfp3 %s
28 // RUN: %clang_cc1 -triple arm-apple-darwin10 -mfpmath vfp4 %s
30 // RUN: %clang_cc1 -triple arm-apple-darwin10 -target-cpu cortex-a9 \
31 // RUN: -mfpmath neon %s
33 // RUN: not %clang_cc1 -triple arm-apple-darwin10 -mfpmath foo %s 2>&1 \
34 // RUN: FileCheck --check-prefix=CHECK-FOO %s
35 // CHECK-FOO: unknown FP unit 'foo'
37 // RUN: not %clang_cc1 -triple arm-apple-darwin10 -target-cpu arm1136j-s \
38 // RUN: -mfpmath neon %s 2>&1 | FileCheck --check-prefix=CHECK-NO-NEON %s
40 // RUN: not %clang_cc1 -triple arm-apple-darwin10 -target-cpu cortex-a9 \
41 // RUN: -target-feature -neon -mfpmath neon %s 2>&1 | FileCheck --check-prefix=CHECK-NO-NEON %s
43 // CHECK-NO-NEON: error: the 'neon' unit is not supported with this instruction set