1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -E -dM -triple thumbv7m-apple-unknown-macho -target-cpu cortex-m3 %s | FileCheck %s -check-prefix CHECK-7M 2*0a6a1f1dSLionel Sambuc 3*0a6a1f1dSLionel Sambuc // CHECK-7M: #define __APPLE_CC__ 4*0a6a1f1dSLionel Sambuc // CHECK-7M: #define __APPLE__ 5*0a6a1f1dSLionel Sambuc // CHECK-7M: #define __ARM_ARCH_7M__ 6*0a6a1f1dSLionel Sambuc // CHECK-7M-NOT: #define __MACH__ 7*0a6a1f1dSLionel Sambuc 8*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -E -dM -triple thumbv7em-apple-unknown-macho -target-cpu cortex-m4 %s | FileCheck %s -check-prefix CHECK-7EM 9*0a6a1f1dSLionel Sambuc 10*0a6a1f1dSLionel Sambuc // CHECK-7EM: #define __APPLE_CC__ 11*0a6a1f1dSLionel Sambuc // CHECK-7EM: #define __APPLE__ 12*0a6a1f1dSLionel Sambuc // CHECK-7EM: #define __ARM_ARCH_7EM__ 13*0a6a1f1dSLionel Sambuc // CHECK-7EM-NOT: #define __MACH__ 14*0a6a1f1dSLionel Sambuc 15*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -E -dM -triple thumbv6m-apple-unknown-macho -target-cpu cortex-m0 %s | FileCheck %s -check-prefix CHECK-6M 16*0a6a1f1dSLionel Sambuc 17*0a6a1f1dSLionel Sambuc // CHECK-6M: #define __APPLE_CC__ 18*0a6a1f1dSLionel Sambuc // CHECK-6M: #define __APPLE__ 19*0a6a1f1dSLionel Sambuc // CHECK-6M: #define __ARM_ARCH_6M__ 20*0a6a1f1dSLionel Sambuc // CHECK-6M-NOT: #define __MACH__ 21