|
10 | 10 | // MIPS32BE:#define _MIPS_ARCH_MIPS32R2 1
|
11 | 11 | // MIPS32BE:#define _MIPS_FPSET 16
|
12 | 12 | // MIPS32BE:#define _MIPS_SIM _ABIO32
|
| 13 | +// MIPS32BE:#define _MIPS_SPFPSET 16 |
13 | 14 | // MIPS32BE:#define _MIPS_SZINT 32
|
14 | 15 | // MIPS32BE:#define _MIPS_SZLONG 32
|
15 | 16 | // MIPS32BE:#define _MIPS_SZPTR 32
|
|
220 | 221 | // MIPS32EL:#define _MIPS_ARCH_MIPS32R2 1
|
221 | 222 | // MIPS32EL:#define _MIPS_FPSET 16
|
222 | 223 | // MIPS32EL:#define _MIPS_SIM _ABIO32
|
| 224 | +// MIPS32EL:#define _MIPS_SPFPSET 16 |
223 | 225 | // MIPS32EL:#define _MIPS_SZINT 32
|
224 | 226 | // MIPS32EL:#define _MIPS_SZLONG 32
|
225 | 227 | // MIPS32EL:#define _MIPS_SZPTR 32
|
|
432 | 434 | // MIPSN32BE: #define _MIPS_FPSET 32
|
433 | 435 | // MIPSN32BE: #define _MIPS_ISA _MIPS_ISA_MIPS64
|
434 | 436 | // MIPSN32BE: #define _MIPS_SIM _ABIN32
|
| 437 | +// MIPSN32BE: #define _MIPS_SPFPSET 32 |
435 | 438 | // MIPSN32BE: #define _MIPS_SZINT 32
|
436 | 439 | // MIPSN32BE: #define _MIPS_SZLONG 32
|
437 | 440 | // MIPSN32BE: #define _MIPS_SZPTR 32
|
|
739 | 742 | // MIPSN32EL: #define _MIPS_FPSET 32
|
740 | 743 | // MIPSN32EL: #define _MIPS_ISA _MIPS_ISA_MIPS64
|
741 | 744 | // MIPSN32EL: #define _MIPS_SIM _ABIN32
|
| 745 | +// MIPSN32EL: #define _MIPS_SPFPSET 32 |
742 | 746 | // MIPSN32EL: #define _MIPS_SZINT 32
|
743 | 747 | // MIPSN32EL: #define _MIPS_SZLONG 32
|
744 | 748 | // MIPSN32EL: #define _MIPS_SZPTR 32
|
|
1043 | 1047 | // MIPS64BE:#define _MIPS_ARCH_MIPS64R2 1
|
1044 | 1048 | // MIPS64BE:#define _MIPS_FPSET 32
|
1045 | 1049 | // MIPS64BE:#define _MIPS_SIM _ABI64
|
| 1050 | +// MIPS64BE:#define _MIPS_SPFPSET 32 |
1046 | 1051 | // MIPS64BE:#define _MIPS_SZINT 32
|
1047 | 1052 | // MIPS64BE:#define _MIPS_SZLONG 64
|
1048 | 1053 | // MIPS64BE:#define _MIPS_SZPTR 64
|
|
1253 | 1258 | // MIPS64EL:#define _MIPS_ARCH_MIPS64R2 1
|
1254 | 1259 | // MIPS64EL:#define _MIPS_FPSET 32
|
1255 | 1260 | // MIPS64EL:#define _MIPS_SIM _ABI64
|
| 1261 | +// MIPS64EL:#define _MIPS_SPFPSET 32 |
1256 | 1262 | // MIPS64EL:#define _MIPS_SZINT 32
|
1257 | 1263 | // MIPS64EL:#define _MIPS_SZLONG 64
|
1258 | 1264 | // MIPS64EL:#define _MIPS_SZPTR 64
|
|
1506 | 1512 | // MIPS-ARCH-32R6:#define _MIPS_ARCH "mips32r6"
|
1507 | 1513 | // MIPS-ARCH-32R6:#define _MIPS_ARCH_MIPS32R6 1
|
1508 | 1514 | // MIPS-ARCH-32R6:#define _MIPS_ISA _MIPS_ISA_MIPS32
|
| 1515 | +// MIPS-ARCH-32R6:#define __mips_fpr 64 |
1509 | 1516 | // MIPS-ARCH-32R6:#define __mips_isa_rev 6
|
1510 | 1517 |
|
1511 | 1518 | // RUN: %clang_cc1 -E -dM -ffreestanding -triple=mips64-none-none \
|
|
1682 | 1689 | // RUN: | FileCheck -match-full-lines -check-prefix MIPS32-NOFP %s
|
1683 | 1690 | // MIPS32-NOFP:#define __mips_fpr 0
|
1684 | 1691 |
|
| 1692 | +// RUN: %clang_cc1 -target-feature -nooddspreg \ |
| 1693 | +// RUN: -E -dM -triple=mips-none-none < /dev/null \ |
| 1694 | +// RUN: | FileCheck -match-full-lines -check-prefix MIPS32-NOFP-ODD %s |
| 1695 | +// MIPS32-NOFP-ODD:#define _MIPS_SPFPSET 32 |
| 1696 | +// MIPS32-NOFP-ODD:#define __mips_fpr 0 |
| 1697 | + |
| 1698 | +// RUN: %clang_cc1 -target-feature +nooddspreg -target-feature -fp64 \ |
| 1699 | +// RUN: -E -dM -triple=mips-none-none < /dev/null \ |
| 1700 | +// RUN: | FileCheck -match-full-lines -check-prefix MIPS32-FP64-NOODD %s |
| 1701 | +// MIPS32-FP64-NOODD:#define _MIPS_SPFPSET 16 |
| 1702 | +// MIPS32-FP64-NOODD:#define __mips_fpr 32 |
| 1703 | + |
1685 | 1704 | // RUN: %clang_cc1 -target-feature +fpxx \
|
1686 | 1705 | // RUN: -E -dM -triple=mips-none-none < /dev/null \
|
1687 | 1706 | // RUN: | FileCheck -match-full-lines -check-prefix MIPS32-MFPXX %s
|
| 1707 | +// MIPS32-MFPXX:#define _MIPS_SPFPSET 16 |
1688 | 1708 | // MIPS32-MFPXX:#define __mips_fpr 0
|
1689 | 1709 |
|
1690 | 1710 | // RUN: %clang_cc1 -target-cpu mips32r6 -target-feature +fpxx \
|
1691 | 1711 | // RUN: -E -dM -triple=mips-none-none < /dev/null \
|
1692 | 1712 | // RUN: | FileCheck -match-full-lines -check-prefix MIPS32R6-MFPXX %s
|
| 1713 | +// MIPS32R6-MFPXX:#define _MIPS_SPFPSET 16 |
1693 | 1714 | // MIPS32R6-MFPXX:#define __mips_fpr 0
|
1694 | 1715 |
|
1695 | 1716 | // RUN: %clang_cc1 \
|
|
1716 | 1737 | // RUN: -E -dM -triple=mips-none-none < /dev/null \
|
1717 | 1738 | // RUN: | FileCheck -match-full-lines -check-prefix MIPS32-MFP32 %s
|
1718 | 1739 | // MIPS32-MFP32:#define _MIPS_FPSET 16
|
| 1740 | +// MIPS32-MFP32:#define _MIPS_SPFPSET 32 |
1719 | 1741 | // MIPS32-MFP32:#define __mips_fpr 32
|
1720 | 1742 |
|
1721 | 1743 | // RUN: %clang_cc1 -target-feature +fp64 \
|
1722 | 1744 | // RUN: -E -dM -triple=mips-none-none < /dev/null \
|
1723 | 1745 | // RUN: | FileCheck -match-full-lines -check-prefix MIPS32-MFP64 %s
|
1724 | 1746 | // MIPS32-MFP64:#define _MIPS_FPSET 32
|
| 1747 | +// MIPS32-MFP64:#define _MIPS_SPFPSET 32 |
1725 | 1748 | // MIPS32-MFP64:#define __mips_fpr 64
|
1726 | 1749 | //
|
1727 | 1750 | // RUN: %clang_cc1 -target-feature +single-float \
|
1728 | 1751 | // RUN: -E -dM -triple=mips-none-none < /dev/null \
|
1729 | 1752 | // RUN: | FileCheck -match-full-lines -check-prefix MIPS32-MFP32SF %s
|
1730 | 1753 | // MIPS32-MFP32SF:#define _MIPS_FPSET 32
|
| 1754 | +// MIPS32-MFP32SF:#define _MIPS_SPFPSET 16 |
1731 | 1755 | // MIPS32-MFP32SF:#define __mips_fpr 0
|
1732 | 1756 |
|
1733 | 1757 | // RUN: %clang_cc1 -target-feature +fp64 \
|
1734 | 1758 | // RUN: -E -dM -triple=mips64-none-none < /dev/null \
|
1735 | 1759 | // RUN: | FileCheck -match-full-lines -check-prefix MIPS64-MFP64 %s
|
1736 | 1760 | // MIPS64-MFP64:#define _MIPS_FPSET 32
|
| 1761 | +// MIPS64-MFP64:#define _MIPS_SPFPSET 32 |
1737 | 1762 | // MIPS64-MFP64:#define __mips_fpr 64
|
1738 | 1763 |
|
1739 | 1764 | // RUN: %clang_cc1 -target-feature -fp64 -target-feature +single-float \
|
1740 | 1765 | // RUN: -E -dM -triple=mips64-none-none < /dev/null \
|
1741 | 1766 | // RUN: | FileCheck -match-full-lines -check-prefix MIPS64-NOMFP64 %s
|
1742 | 1767 | // MIPS64-NOMFP64:#define _MIPS_FPSET 32
|
| 1768 | +// MIPS64-NOMFP64:#define _MIPS_SPFPSET 32 |
1743 | 1769 | // MIPS64-NOMFP64:#define __mips_fpr 32
|
1744 | 1770 |
|
1745 | 1771 | // RUN: %clang_cc1 -target-cpu mips32r6 \
|
|
1749 | 1775 | // RUN: -E -dM -triple=mips64-none-none < /dev/null \
|
1750 | 1776 | // RUN: | FileCheck -match-full-lines -check-prefix MIPS-XXR6 %s
|
1751 | 1777 | // MIPS-XXR6:#define _MIPS_FPSET 32
|
| 1778 | +// MIPS-XXR6:#define _MIPS_SPFPSET 32 |
1752 | 1779 | // MIPS-XXR6:#define __mips_fpr 64
|
1753 | 1780 | // MIPS-XXR6:#define __mips_nan2008 1
|
1754 | 1781 |
|
|
0 commit comments