|
798 | 798 | // LA64-FPU0-LP64S-NOT: #define __loongarch_single_float
|
799 | 799 | // LA64-FPU0-LP64S: #define __loongarch_soft_float 1
|
800 | 800 |
|
801 |
| -/// Check __loongarch_arch and __loongarch_tune. |
| 801 | +/// Check __loongarch_arch{_tune/_frecipe}. |
802 | 802 |
|
803 | 803 | // RUN: %clang --target=loongarch64 -x c -E -dM %s -o - | \
|
804 |
| -// RUN: FileCheck --match-full-lines --check-prefix=ARCH-TUNE -DARCH=loongarch64 -DTUNE=loongarch64 %s |
| 804 | +// RUN: FileCheck --match-full-lines --check-prefix=ARCH-TUNE -DARCH=la64v1.0 -DTUNE=loongarch64 %s |
805 | 805 | // RUN: %clang --target=loongarch64 -x c -E -dM %s -o - -march=loongarch64 | \
|
806 | 806 | // RUN: FileCheck --match-full-lines --check-prefix=ARCH-TUNE -DARCH=loongarch64 -DTUNE=loongarch64 %s
|
807 | 807 | // RUN: %clang --target=loongarch64 -x c -E -dM %s -o - -march=la464 | \
|
808 | 808 | // RUN: FileCheck --match-full-lines --check-prefix=ARCH-TUNE -DARCH=la464 -DTUNE=la464 %s
|
809 | 809 | // RUN: %clang --target=loongarch64 -x c -E -dM %s -o - -mtune=loongarch64 | \
|
810 |
| -// RUN: FileCheck --match-full-lines --check-prefix=ARCH-TUNE -DARCH=loongarch64 -DTUNE=loongarch64 %s |
| 810 | +// RUN: FileCheck --match-full-lines --check-prefix=ARCH-TUNE -DARCH=la64v1.0 -DTUNE=loongarch64 %s |
811 | 811 | // RUN: %clang --target=loongarch64 -x c -E -dM %s -o - -mtune=la464 | \
|
812 |
| -// RUN: FileCheck --match-full-lines --check-prefix=ARCH-TUNE -DARCH=loongarch64 -DTUNE=la464 %s |
| 812 | +// RUN: FileCheck --match-full-lines --check-prefix=ARCH-TUNE -DARCH=la64v1.0 -DTUNE=la464 %s |
813 | 813 | // RUN: %clang --target=loongarch64 -x c -E -dM %s -o - -march=loongarch64 -mtune=la464 | \
|
814 | 814 | // RUN: FileCheck --match-full-lines --check-prefix=ARCH-TUNE -DARCH=loongarch64 -DTUNE=la464 %s
|
815 | 815 | // RUN: %clang --target=loongarch64 -x c -E -dM %s -o - -march=la464 -mtune=loongarch64 | \
|
816 | 816 | // RUN: FileCheck --match-full-lines --check-prefix=ARCH-TUNE -DARCH=la464 -DTUNE=loongarch64 %s
|
| 817 | +// RUN: %clang --target=loongarch64 -x c -E -dM %s -o - -march=la64v1.0 | \ |
| 818 | +// RUN: FileCheck --match-full-lines --check-prefix=ARCH-TUNE -DARCH=la64v1.0 -DTUNE=loongarch64 %s |
| 819 | +// RUN: %clang --target=loongarch64 -x c -E -dM %s -o - -march=la64v1.0 -Xclang -target-feature -Xclang -lsx | \ |
| 820 | +// RUN: FileCheck --match-full-lines --check-prefix=ARCH-TUNE -DARCH=loongarch64 -DTUNE=loongarch64 %s |
| 821 | +// RUN: %clang --target=loongarch64 -x c -E -dM %s -o - -march=la64v1.0 -Xclang -target-feature -Xclang +frecipe | \ |
| 822 | +// RUN: FileCheck --match-full-lines --check-prefixes=ARCH-TUNE,FRECIPE -DARCH=la64v1.1 -DTUNE=loongarch64 %s |
| 823 | +// RUN: %clang --target=loongarch64 -x c -E -dM %s -o - -march=loongarch64 -Xclang -target-feature -Xclang +lsx | \ |
| 824 | +// RUN: FileCheck --match-full-lines --check-prefix=ARCH-TUNE -DARCH=la64v1.0 -DTUNE=loongarch64 %s |
| 825 | +// RUN: %clang --target=loongarch64 -x c -E -dM %s -o - -march=la64v1.1 | \ |
| 826 | +// RUN: FileCheck --match-full-lines --check-prefixes=ARCH-TUNE,FRECIPE -DARCH=la64v1.1 -DTUNE=loongarch64 %s |
| 827 | +// RUN: %clang --target=loongarch64 -x c -E -dM %s -o - -march=la64v1.1 -Xclang -target-feature -Xclang -frecipe | \ |
| 828 | +// RUN: FileCheck --match-full-lines --check-prefix=ARCH-TUNE -DARCH=la64v1.0 -DTUNE=loongarch64 %s |
| 829 | +// RUN: %clang --target=loongarch64 -x c -E -dM %s -o - -march=la64v1.1 -Xclang -target-feature -Xclang -lsx | \ |
| 830 | +// RUN: FileCheck --match-full-lines --check-prefixes=ARCH-TUNE,FRECIPE -DARCH=loongarch64 -DTUNE=loongarch64 %s |
| 831 | +// RUN: %clang --target=loongarch64 -x c -E -dM %s -o - -march=loongarch64 -Xclang -target-feature -Xclang +frecipe | \ |
| 832 | +// RUN: FileCheck --match-full-lines --check-prefixes=ARCH-TUNE,FRECIPE -DARCH=loongarch64 -DTUNE=loongarch64 %s |
| 833 | +// RUN: %clang --target=loongarch64 -x c -E -dM %s -o - -march=loongarch64 -Xclang -target-feature -Xclang +lsx -Xclang -target-feature -Xclang +frecipe | \ |
| 834 | +// RUN: FileCheck --match-full-lines --check-prefixes=ARCH-TUNE,FRECIPE -DARCH=la64v1.1 -DTUNE=loongarch64 %s |
817 | 835 |
|
818 | 836 | // ARCH-TUNE: #define __loongarch_arch "[[ARCH]]"
|
| 837 | +// FRECIPE: #define __loongarch_frecipe 1 |
819 | 838 | // ARCH-TUNE: #define __loongarch_tune "[[TUNE]]"
|
820 | 839 |
|
821 | 840 | // RUN: %clang --target=loongarch64 -mlsx -x c -E -dM %s -o - \
|
|
0 commit comments