|
6 | 6 | // RUN: FileCheck %s --check-prefix=CC1-LA64V1P0 |
7 | 7 | // RUN: %clang --target=loongarch64 -march=la64v1.1 -fsyntax-only %s -### 2>&1 | \ |
8 | 8 | // RUN: FileCheck %s --check-prefix=CC1-LA64V1P1 |
| 9 | +// RUN: %clang --target=loongarch64 -march=la664 -fsyntax-only %s -### 2>&1 | \ |
| 10 | +// RUN: FileCheck %s --check-prefix=CC1-LA664 |
9 | 11 | // RUN: %clang --target=loongarch64 -march=loongarch64 -S -emit-llvm %s -o - | \ |
10 | 12 | // RUN: FileCheck %s --check-prefix=IR-LOONGARCH64 |
11 | 13 | // RUN: %clang --target=loongarch64 -march=la464 -S -emit-llvm %s -o - | \ |
|
14 | 16 | // RUN: FileCheck %s --check-prefix=IR-LA64V1P0 |
15 | 17 | // RUN: %clang --target=loongarch64 -march=la64v1.1 -S -emit-llvm %s -o - | \ |
16 | 18 | // RUN: FileCheck %s --check-prefix=IR-LA64V1P1 |
| 19 | +// RUN: %clang --target=loongarch64 -march=la664 -S -emit-llvm %s -o - | \ |
| 20 | +// RUN: FileCheck %s --check-prefix=IR-LA664 |
17 | 21 |
|
18 | 22 | // CC1-LOONGARCH64: "-target-cpu" "loongarch64" |
19 | 23 | // CC1-LOONGARCH64-NOT: "-target-feature" |
|
39 | 43 | // CC1-LA64V1P1-NOT: "-target-feature" |
40 | 44 | // CC1-LA64V1P1: "-target-abi" "lp64d" |
41 | 45 |
|
| 46 | +// CC1-LA664: "-target-cpu" "la664" |
| 47 | +// CC1-LA664-NOT: "-target-feature" |
| 48 | +// CC1-LA664: "-target-feature" "+64bit" "-target-feature" "+f" "-target-feature" "+d" "-target-feature" "+lsx" "-target-feature" "+lasx" "-target-feature" "+ual" "-target-feature" "+frecipe" |
| 49 | +// CC1-LA664-NOT: "-target-feature" |
| 50 | +// CC1-LA664: "-target-abi" "lp64d" |
| 51 | + |
42 | 52 | // IR-LOONGARCH64: attributes #[[#]] ={{.*}}"target-cpu"="loongarch64" {{.*}}"target-features"="+64bit,+d,+f,+ual" |
43 | 53 | // IR-LA464: attributes #[[#]] ={{.*}}"target-cpu"="la464" {{.*}}"target-features"="+64bit,+d,+f,+lasx,+lsx,+ual" |
44 | 54 | // IR-LA64V1P0: attributes #[[#]] ={{.*}}"target-cpu"="loongarch64" {{.*}}"target-features"="+64bit,+d,+lsx,+ual" |
45 | 55 | // IR-LA64V1P1: attributes #[[#]] ={{.*}}"target-cpu"="loongarch64" {{.*}}"target-features"="+64bit,+d,+frecipe,+lsx,+ual" |
| 56 | +// IR-LA664: attributes #[[#]] ={{.*}}"target-cpu"="la664" {{.*}}"target-features"="+64bit,+d,+f,+frecipe,+lasx,+lsx,+ual" |
46 | 57 |
|
47 | 58 | int foo(void) { |
48 | 59 | return 3; |
|
0 commit comments