Changeset View
Changeset View
Standalone View
Standalone View
test/Preprocessor/init.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 3,034 Lines • ▼ Show 20 Lines | |||||
// MIPS32BE:#define __WCHAR_TYPE__ int | // MIPS32BE:#define __WCHAR_TYPE__ int | ||||
// MIPS32BE:#define __WCHAR_WIDTH__ 32 | // MIPS32BE:#define __WCHAR_WIDTH__ 32 | ||||
// MIPS32BE:#define __WINT_TYPE__ int | // MIPS32BE:#define __WINT_TYPE__ int | ||||
// MIPS32BE:#define __WINT_WIDTH__ 32 | // MIPS32BE:#define __WINT_WIDTH__ 32 | ||||
// MIPS32BE:#define __clang__ 1 | // MIPS32BE:#define __clang__ 1 | ||||
// MIPS32BE:#define __llvm__ 1 | // MIPS32BE:#define __llvm__ 1 | ||||
// MIPS32BE:#define __mips 32 | // MIPS32BE:#define __mips 32 | ||||
// MIPS32BE:#define __mips__ 1 | // MIPS32BE:#define __mips__ 1 | ||||
// MIPS32BE:#define __mips_abicalls 1 | |||||
// MIPS32BE:#define __mips_fpr 32 | // MIPS32BE:#define __mips_fpr 32 | ||||
// MIPS32BE:#define __mips_hard_float 1 | // MIPS32BE:#define __mips_hard_float 1 | ||||
// MIPS32BE:#define __mips_o32 1 | // MIPS32BE:#define __mips_o32 1 | ||||
// MIPS32BE:#define _mips 1 | // MIPS32BE:#define _mips 1 | ||||
// MIPS32BE:#define mips 1 | // MIPS32BE:#define mips 1 | ||||
// | // | ||||
// RUN: %clang_cc1 -E -dM -ffreestanding -triple=mipsel-none-none < /dev/null | FileCheck -match-full-lines -check-prefix MIPS32EL %s | // RUN: %clang_cc1 -E -dM -ffreestanding -triple=mipsel-none-none < /dev/null | FileCheck -match-full-lines -check-prefix MIPS32EL %s | ||||
// | // | ||||
▲ Show 20 Lines • Show All 190 Lines • ▼ Show 20 Lines | |||||
// MIPS32EL:#define __WCHAR_TYPE__ int | // MIPS32EL:#define __WCHAR_TYPE__ int | ||||
// MIPS32EL:#define __WCHAR_WIDTH__ 32 | // MIPS32EL:#define __WCHAR_WIDTH__ 32 | ||||
// MIPS32EL:#define __WINT_TYPE__ int | // MIPS32EL:#define __WINT_TYPE__ int | ||||
// MIPS32EL:#define __WINT_WIDTH__ 32 | // MIPS32EL:#define __WINT_WIDTH__ 32 | ||||
// MIPS32EL:#define __clang__ 1 | // MIPS32EL:#define __clang__ 1 | ||||
// MIPS32EL:#define __llvm__ 1 | // MIPS32EL:#define __llvm__ 1 | ||||
// MIPS32EL:#define __mips 32 | // MIPS32EL:#define __mips 32 | ||||
// MIPS32EL:#define __mips__ 1 | // MIPS32EL:#define __mips__ 1 | ||||
// MIPS32EL:#define __mips_abicalls 1 | |||||
// MIPS32EL:#define __mips_fpr 32 | // MIPS32EL:#define __mips_fpr 32 | ||||
// MIPS32EL:#define __mips_hard_float 1 | // MIPS32EL:#define __mips_hard_float 1 | ||||
// MIPS32EL:#define __mips_o32 1 | // MIPS32EL:#define __mips_o32 1 | ||||
// MIPS32EL:#define _mips 1 | // MIPS32EL:#define _mips 1 | ||||
// MIPS32EL:#define mips 1 | // MIPS32EL:#define mips 1 | ||||
// | // | ||||
// RUN: %clang_cc1 -E -dM -ffreestanding \ | // RUN: %clang_cc1 -E -dM -ffreestanding \ | ||||
// RUN: -triple=mips64-none-none -target-abi n32 < /dev/null \ | // RUN: -triple=mips64-none-none -target-abi n32 < /dev/null \ | ||||
▲ Show 20 Lines • Show All 293 Lines • ▼ Show 20 Lines | |||||
// MIPSN32BE: #define __WINT_TYPE__ int | // MIPSN32BE: #define __WINT_TYPE__ int | ||||
// MIPSN32BE: #define __WINT_WIDTH__ 32 | // MIPSN32BE: #define __WINT_WIDTH__ 32 | ||||
// MIPSN32BE: #define __clang__ 1 | // MIPSN32BE: #define __clang__ 1 | ||||
// MIPSN32BE: #define __llvm__ 1 | // MIPSN32BE: #define __llvm__ 1 | ||||
// MIPSN32BE: #define __mips 64 | // MIPSN32BE: #define __mips 64 | ||||
// MIPSN32BE: #define __mips64 1 | // MIPSN32BE: #define __mips64 1 | ||||
// MIPSN32BE: #define __mips64__ 1 | // MIPSN32BE: #define __mips64__ 1 | ||||
// MIPSN32BE: #define __mips__ 1 | // MIPSN32BE: #define __mips__ 1 | ||||
// MIPSN32BE: #define __mips_abicalls 1 | |||||
// MIPSN32BE: #define __mips_fpr 64 | // MIPSN32BE: #define __mips_fpr 64 | ||||
// MIPSN32BE: #define __mips_hard_float 1 | // MIPSN32BE: #define __mips_hard_float 1 | ||||
// MIPSN32BE: #define __mips_isa_rev 2 | // MIPSN32BE: #define __mips_isa_rev 2 | ||||
// MIPSN32BE: #define __mips_n32 1 | // MIPSN32BE: #define __mips_n32 1 | ||||
// MIPSN32BE: #define _mips 1 | // MIPSN32BE: #define _mips 1 | ||||
// MIPSN32BE: #define mips 1 | // MIPSN32BE: #define mips 1 | ||||
// | // | ||||
// RUN: %clang_cc1 -E -dM -ffreestanding \ | // RUN: %clang_cc1 -E -dM -ffreestanding \ | ||||
▲ Show 20 Lines • Show All 290 Lines • ▼ Show 20 Lines | |||||
// MIPSN32EL: #define __WINT_TYPE__ int | // MIPSN32EL: #define __WINT_TYPE__ int | ||||
// MIPSN32EL: #define __WINT_WIDTH__ 32 | // MIPSN32EL: #define __WINT_WIDTH__ 32 | ||||
// MIPSN32EL: #define __clang__ 1 | // MIPSN32EL: #define __clang__ 1 | ||||
// MIPSN32EL: #define __llvm__ 1 | // MIPSN32EL: #define __llvm__ 1 | ||||
// MIPSN32EL: #define __mips 64 | // MIPSN32EL: #define __mips 64 | ||||
// MIPSN32EL: #define __mips64 1 | // MIPSN32EL: #define __mips64 1 | ||||
// MIPSN32EL: #define __mips64__ 1 | // MIPSN32EL: #define __mips64__ 1 | ||||
// MIPSN32EL: #define __mips__ 1 | // MIPSN32EL: #define __mips__ 1 | ||||
// MIPSN32EL: #define __mips_abicalls 1 | |||||
// MIPSN32EL: #define __mips_fpr 64 | // MIPSN32EL: #define __mips_fpr 64 | ||||
// MIPSN32EL: #define __mips_hard_float 1 | // MIPSN32EL: #define __mips_hard_float 1 | ||||
// MIPSN32EL: #define __mips_isa_rev 2 | // MIPSN32EL: #define __mips_isa_rev 2 | ||||
// MIPSN32EL: #define __mips_n32 1 | // MIPSN32EL: #define __mips_n32 1 | ||||
// MIPSN32EL: #define _mips 1 | // MIPSN32EL: #define _mips 1 | ||||
// MIPSN32EL: #define mips 1 | // MIPSN32EL: #define mips 1 | ||||
// | // | ||||
// RUN: %clang_cc1 -E -dM -ffreestanding -triple=mips64-none-none < /dev/null | FileCheck -match-full-lines -check-prefix MIPS64BE %s | // RUN: %clang_cc1 -E -dM -ffreestanding -triple=mips64-none-none < /dev/null | FileCheck -match-full-lines -check-prefix MIPS64BE %s | ||||
▲ Show 20 Lines • Show All 196 Lines • ▼ Show 20 Lines | |||||
// MIPS64BE:#define __WINT_TYPE__ int | // MIPS64BE:#define __WINT_TYPE__ int | ||||
// MIPS64BE:#define __WINT_WIDTH__ 32 | // MIPS64BE:#define __WINT_WIDTH__ 32 | ||||
// MIPS64BE:#define __clang__ 1 | // MIPS64BE:#define __clang__ 1 | ||||
// MIPS64BE:#define __llvm__ 1 | // MIPS64BE:#define __llvm__ 1 | ||||
// MIPS64BE:#define __mips 64 | // MIPS64BE:#define __mips 64 | ||||
// MIPS64BE:#define __mips64 1 | // MIPS64BE:#define __mips64 1 | ||||
// MIPS64BE:#define __mips64__ 1 | // MIPS64BE:#define __mips64__ 1 | ||||
// MIPS64BE:#define __mips__ 1 | // MIPS64BE:#define __mips__ 1 | ||||
// MIPS64BE:#define __mips_abicalls 1 | |||||
// MIPS64BE:#define __mips_fpr 64 | // MIPS64BE:#define __mips_fpr 64 | ||||
// MIPS64BE:#define __mips_hard_float 1 | // MIPS64BE:#define __mips_hard_float 1 | ||||
// MIPS64BE:#define __mips_n64 1 | // MIPS64BE:#define __mips_n64 1 | ||||
// MIPS64BE:#define _mips 1 | // MIPS64BE:#define _mips 1 | ||||
// MIPS64BE:#define mips 1 | // MIPS64BE:#define mips 1 | ||||
// | // | ||||
// RUN: %clang_cc1 -E -dM -ffreestanding -triple=mips64el-none-none < /dev/null | FileCheck -match-full-lines -check-prefix MIPS64EL %s | // RUN: %clang_cc1 -E -dM -ffreestanding -triple=mips64el-none-none < /dev/null | FileCheck -match-full-lines -check-prefix MIPS64EL %s | ||||
// | // | ||||
▲ Show 20 Lines • Show All 193 Lines • ▼ Show 20 Lines | |||||
// MIPS64EL:#define __WINT_TYPE__ int | // MIPS64EL:#define __WINT_TYPE__ int | ||||
// MIPS64EL:#define __WINT_WIDTH__ 32 | // MIPS64EL:#define __WINT_WIDTH__ 32 | ||||
// MIPS64EL:#define __clang__ 1 | // MIPS64EL:#define __clang__ 1 | ||||
// MIPS64EL:#define __llvm__ 1 | // MIPS64EL:#define __llvm__ 1 | ||||
// MIPS64EL:#define __mips 64 | // MIPS64EL:#define __mips 64 | ||||
// MIPS64EL:#define __mips64 1 | // MIPS64EL:#define __mips64 1 | ||||
// MIPS64EL:#define __mips64__ 1 | // MIPS64EL:#define __mips64__ 1 | ||||
// MIPS64EL:#define __mips__ 1 | // MIPS64EL:#define __mips__ 1 | ||||
// MIPS64EL:#define __mips_abicalls 1 | |||||
// MIPS64EL:#define __mips_fpr 64 | // MIPS64EL:#define __mips_fpr 64 | ||||
// MIPS64EL:#define __mips_hard_float 1 | // MIPS64EL:#define __mips_hard_float 1 | ||||
// MIPS64EL:#define __mips_n64 1 | // MIPS64EL:#define __mips_n64 1 | ||||
// MIPS64EL:#define _mips 1 | // MIPS64EL:#define _mips 1 | ||||
// MIPS64EL:#define mips 1 | // MIPS64EL:#define mips 1 | ||||
// | // | ||||
// Check MIPS arch and isa macros | // Check MIPS arch and isa macros | ||||
// | // | ||||
▲ Show 20 Lines • Show All 215 Lines • ▼ Show 20 Lines | |||||
// RUN: | FileCheck -match-full-lines -check-prefix MIPS-XXR6 %s | // RUN: | FileCheck -match-full-lines -check-prefix MIPS-XXR6 %s | ||||
// RUN: %clang_cc1 -target-cpu mips64r6 \ | // RUN: %clang_cc1 -target-cpu mips64r6 \ | ||||
// RUN: -E -dM -triple=mips64-none-none < /dev/null \ | // RUN: -E -dM -triple=mips64-none-none < /dev/null \ | ||||
// RUN: | FileCheck -match-full-lines -check-prefix MIPS-XXR6 %s | // RUN: | FileCheck -match-full-lines -check-prefix MIPS-XXR6 %s | ||||
// MIPS-XXR6:#define _MIPS_FPSET 32 | // MIPS-XXR6:#define _MIPS_FPSET 32 | ||||
// MIPS-XXR6:#define __mips_fpr 64 | // MIPS-XXR6:#define __mips_fpr 64 | ||||
// MIPS-XXR6:#define __mips_nan2008 1 | // MIPS-XXR6:#define __mips_nan2008 1 | ||||
// | // | ||||
// RUN: %clang_cc1 -target-cpu mips32 \ | |||||
// RUN: -E -dM -triple=mips-unknown-netbsd -mrelocation-model pic < /dev/null \ | |||||
// RUN: | FileCheck -match-full-lines -check-prefix MIPS-ABICALLS-NETBSD %s | |||||
// MIPS-ABICALLS-NETBSD: #define __ABICALLS__ 1 | |||||
// MIPS-ABICALLS-NETBSD-NOT: #define __mips_abicalls 1 | |||||
// | |||||
// RUN: %clang_cc1 -target-cpu mips64 \ | |||||
// RUN: -E -dM -triple=mips64-unknown-netbsd -mrelocation-model pic < \ | |||||
// RUN: /dev/null | FileCheck -match-full-lines \ | |||||
// RUN: -check-prefix MIPS-ABICALLS-NETBSD64 %s | |||||
// MIPS-ABICALLS-NETBSD64: #define __ABICALLS__ 1 | |||||
// MIPS-ABICALLS-NETBSD-NOT: #define __mips_abicalls 1 | |||||
sdardis: Nit to self: this should be MIPS-ABICALLS-NETBSD64-NOT. Likewise for FREEBSD64 and OPENBSD64. | |||||
// | |||||
// RUN: %clang_cc1 -target-cpu mips32 \ | |||||
// RUN: -E -dM -triple=mips-unknown-freebsd -mrelocation-model pic < /dev/null \ | |||||
// RUN: | FileCheck -match-full-lines -check-prefix MIPS-ABICALLS-FREEBSD %s | |||||
// MIPS-ABICALLS-FREEBSD: #define __ABICALLS__ 1 | |||||
// MIPS-ABICALLS-FREEBSD-NOT: #define __mips_abicalls 1 | |||||
// | |||||
// RUN: %clang_cc1 -target-cpu mips64 \ | |||||
// RUN: -E -dM -triple=mips64-unknown-freebsd -mrelocation-model pic < \ | |||||
// RUN: /dev/null | FileCheck -match-full-lines \ | |||||
// RUN: -check-prefix MIPS-ABICALLS-FREEBSD64 %s | |||||
// MIPS-ABICALLS-FREEBSD64: #define __ABICALLS__ 1 | |||||
// MIPS-ABICALLS-FREEBSD-NOT: #define __mips_abicalls 1 | |||||
// | |||||
// RUN: %clang_cc1 -target-cpu mips32 \ | |||||
// RUN: -E -dM -triple=mips-unknown-openbsd -mrelocation-model pic < /dev/null \ | |||||
// RUN: | FileCheck -match-full-lines -check-prefix MIPS-ABICALLS-OPENBSD %s | |||||
// MIPS-ABICALLS-OPENBSD: #define __ABICALLS__ 1 | |||||
// MIPS-ABICALLS-OPENBSD-NOT: #define __mips_abicalls 1 | |||||
// | |||||
// RUN: %clang_cc1 -target-cpu mips64 \ | |||||
// RUN: -E -dM -triple=mips64-unknown-openbsd -mrelocation-model pic < \ | |||||
// RUN: /dev/null | FileCheck -match-full-lines \ | |||||
// RUN: -check-prefix MIPS-ABICALLS-OPENBSD64 %s | |||||
// MIPS-ABICALLS-OPENBSD64: #define __ABICALLS__ 1 | |||||
// MIPS-ABICALLS-OPENBSD-NOT: #define __mips_abicalls 1 | |||||
// | |||||
// RUN: %clang_cc1 -E -dM -ffreestanding -triple=msp430-none-none < /dev/null | FileCheck -match-full-lines -check-prefix MSP430 %s | // RUN: %clang_cc1 -E -dM -ffreestanding -triple=msp430-none-none < /dev/null | FileCheck -match-full-lines -check-prefix MSP430 %s | ||||
// RUN: %clang_cc1 -x c++ -E -dM -ffreestanding -triple=msp430-none-none < /dev/null | FileCheck -match-full-lines -check-prefix MSP430 -check-prefix MSP430-CXX %s | // RUN: %clang_cc1 -x c++ -E -dM -ffreestanding -triple=msp430-none-none < /dev/null | FileCheck -match-full-lines -check-prefix MSP430 -check-prefix MSP430-CXX %s | ||||
// | // | ||||
// MSP430:#define MSP430 1 | // MSP430:#define MSP430 1 | ||||
// MSP430-NOT:#define _LP64 | // MSP430-NOT:#define _LP64 | ||||
// MSP430:#define __BIGGEST_ALIGNMENT__ 2 | // MSP430:#define __BIGGEST_ALIGNMENT__ 2 | ||||
// MSP430:#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__ | // MSP430:#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__ | ||||
// MSP430:#define __CHAR16_TYPE__ unsigned short | // MSP430:#define __CHAR16_TYPE__ unsigned short | ||||
▲ Show 20 Lines • Show All 4,841 Lines • Show Last 20 Lines |
Nit to self: this should be MIPS-ABICALLS-NETBSD64-NOT. Likewise for FREEBSD64 and OPENBSD64.