[PATCH] D147481: [M68k] Add basic Clang supports for M68881/2
Simon Pilgrim via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 4 03:00:10 PDT 2023
RKSimon added inline comments.
================
Comment at: clang/test/Driver/m68k-macros.cpp:2
// Check macro definitions
// RUN: %clang -target m68k-unknown-linux -m68000 -dM -E %s | FileCheck --check-prefix=CHECK-MX %s
+// RUN: %clang -target m68k-unknown-linux -m68000 -mhard-float -dM -E %s | FileCheck --check-prefix=CHECK-MX881 %s
----------------
Add a CHECK-NOMX881 prefix and check that __HAVE_68881__ isn't defined?
================
Comment at: clang/test/Driver/m68k-macros.cpp:24
+
+// RUN: %clang -target m68k-unknown-linux -m68020 -dM -E %s | FileCheck --check-prefixes=CHECK-MX20,CHECK-MX881 %s
// CHECK-MX20: #define __mc68000 1
----------------
Add soft-float checks without CHECK-MX881 so we can check for 020-060 targets without FPU (68LC040 etc.)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147481/new/
https://reviews.llvm.org/D147481
More information about the cfe-commits
mailing list