Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Driver / m68k-macros.cpp
blobc61248ee0232a481097640d2433408b518918af9
1 // Check macro definitions
3 // Since '__HAVE_68881__' sorted before most of the 'mc680x0' macros, we need to put it here.
4 // CHECK-MX881: #define __HAVE_68881__ 1
5 // CHECK-NOMX881-NOT: #define __HAVE_68881__ 1
7 // RUN: %clang -target m68k-unknown-linux -m68000 -std=c++11 -dM -E %s | FileCheck --check-prefixes=CHECK-MX,CHECK-NOMX881 %s
8 // RUN: %clang -target m68k-unknown-linux -m68000 -std=gnu++11 -dM -E %s | FileCheck --check-prefixes=CHECK-MX,CHECK-MX-GNU,CHECK-NOMX881 %s
9 // RUN: %clang -target m68k-unknown-linux -m68000 -mhard-float -dM -E %s | FileCheck --check-prefix=CHECK-MX881 %s
10 // RUN: %clang -target m68k-unknown-linux -m68000 -m68881 -dM -E %s | FileCheck --check-prefix=CHECK-MX881 %s
11 // CHECK-MX: #define __mc68000 1
12 // CHECK-MX: #define __mc68000__ 1
13 // CHECK-MX-GNU: #define mc68000 1
15 // RUN: %clang -target m68k-unknown-linux -m68010 -std=c++11 -dM -E %s | FileCheck --check-prefixes=CHECK-MX10,CHECK-NOMX881 %s
16 // RUN: %clang -target m68k-unknown-linux -m68010 -std=gnu++11 -dM -E %s | FileCheck --check-prefixes=CHECK-MX10,CHECK-MX10-GNU,CHECK-NOMX881 %s
17 // RUN: %clang -target m68k-unknown-linux -m68010 -mhard-float -dM -E %s | FileCheck --check-prefix=CHECK-MX881 %s
18 // RUN: %clang -target m68k-unknown-linux -m68010 -m68881 -dM -E %s | FileCheck --check-prefix=CHECK-MX881 %s
19 // CHECK-MX10: #define __mc68000 1
20 // CHECK-MX10: #define __mc68000__ 1
21 // CHECK-MX10: #define __mc68010 1
22 // CHECK-MX10: #define __mc68010__ 1
23 // CHECK-MX10-GNU: #define mc68000 1
24 // CHECK-MX10-GNU: #define mc68010 1
26 // RUN: %clang -target m68k-unknown-linux -m68020 -std=c++11 -dM -E %s | FileCheck --check-prefixes=CHECK-MX20,CHECK-MX881 %s
27 // RUN: %clang -target m68k-unknown-linux -m68020 -std=gnu++11 -dM -E %s | FileCheck --check-prefixes=CHECK-MX20,CHECK-MX20-GNU,CHECK-MX881 %s
28 // RUN: %clang -target m68k-unknown-linux -m68020 -msoft-float -dM -E %s | FileCheck --check-prefix=CHECK-NOMX881 %s
29 // CHECK-MX20: #define __mc68000 1
30 // CHECK-MX20: #define __mc68000__ 1
31 // CHECK-MX20: #define __mc68020 1
32 // CHECK-MX20: #define __mc68020__ 1
33 // CHECK-MX20-GNU: #define mc68000 1
34 // CHECK-MX20-GNU: #define mc68020 1
36 // RUN: %clang -target m68k-unknown-linux -m68030 -std=c++11 -dM -E %s | FileCheck --check-prefixes=CHECK-MX30,CHECK-MX881 %s
37 // RUN: %clang -target m68k-unknown-linux -m68030 -std=gnu++11 -dM -E %s | FileCheck --check-prefixes=CHECK-MX30,CHECK-MX30-GNU,CHECK-MX881 %s
38 // RUN: %clang -target m68k-unknown-linux -m68030 -msoft-float -dM -E %s | FileCheck --check-prefix=CHECK-NOMX881 %s
39 // CHECK-MX30: #define __mc68000 1
40 // CHECK-MX30: #define __mc68000__ 1
41 // CHECK-MX30: #define __mc68030 1
42 // CHECK-MX30: #define __mc68030__ 1
43 // CHECK-MX30-GNU: #define mc68000 1
44 // CHECK-MX30-GNU: #define mc68030 1
46 // RUN: %clang -target m68k-unknown-linux -m68040 -std=c++11 -dM -E %s | FileCheck --check-prefixes=CHECK-MX40,CHECK-MX881 %s
47 // RUN: %clang -target m68k-unknown-linux -m68040 -std=gnu++11 -dM -E %s | FileCheck --check-prefixes=CHECK-MX40,CHECK-MX40-GNU,CHECK-MX881 %s
48 // RUN: %clang -target m68k-unknown-linux -m68040 -msoft-float -dM -E %s | FileCheck --check-prefix=CHECK-NOMX881 %s
49 // CHECK-MX40: #define __mc68000 1
50 // CHECK-MX40: #define __mc68000__ 1
51 // CHECK-MX40: #define __mc68040 1
52 // CHECK-MX40: #define __mc68040__ 1
53 // CHECK-MX40-GNU: #define mc68000 1
54 // CHECK-MX40-GNU: #define mc68040 1
56 // RUN: %clang -target m68k-unknown-linux -m68060 -std=c++11 -dM -E %s | FileCheck --check-prefixes=CHECK-MX60,CHECK-MX881 %s
57 // RUN: %clang -target m68k-unknown-linux -m68060 -std=gnu++11 -dM -E %s | FileCheck --check-prefixes=CHECK-MX60,CHECK-MX60-GNU,CHECK-MX881 %s
58 // RUN: %clang -target m68k-unknown-linux -m68060 -msoft-float -dM -E %s | FileCheck --check-prefix=CHECK-NOMX881 %s
59 // CHECK-MX60: #define __mc68000 1
60 // CHECK-MX60: #define __mc68000__ 1
61 // CHECK-MX60: #define __mc68060 1
62 // CHECK-MX60: #define __mc68060__ 1
63 // CHECK-MX60-GNU: #define mc68000 1
64 // CHECK-MX60-GNU: #define mc68060 1