| 1 |
/// Test -msimd options. |
| 2 |
|
| 3 |
/// COM: -msimd=none |
| 4 |
// RUN: %clang --target=loongarch64 -mlasx -msimd=none -fsyntax-only %s -### 2>&1 | \ |
| 5 |
// RUN: FileCheck %s --check-prefixes=LSX,LASX |
| 6 |
// RUN: %clang --target=loongarch64 -mlasx -mlsx -msimd=none -fsyntax-only %s -### 2>&1 | \ |
| 7 |
// RUN: FileCheck %s --check-prefixes=LSX,LASX |
| 8 |
|
| 9 |
// RUN: %clang --target=loongarch64 -msimd=none -fsyntax-only %s -### 2>&1 | \ |
| 10 |
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 11 |
// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -msimd=none -fsyntax-only %s -### 2>&1 | \ |
| 12 |
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 13 |
// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -mlsx -mno-lsx -msimd=none -fsyntax-only %s -### 2>&1 | \ |
| 14 |
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 15 |
// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -mno-lsx -msimd=none -fsyntax-only %s -### 2>&1 | \ |
| 16 |
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 17 |
// RUN: %clang --target=loongarch64 -mlsx -mno-lsx -msimd=none -fsyntax-only %s -### 2>&1 | \ |
| 18 |
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 19 |
// RUN: %clang --target=loongarch64 -mno-lasx -msimd=none -fsyntax-only %s -### 2>&1 | \ |
| 20 |
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 21 |
// RUN: %clang --target=loongarch64 -mno-lasx -mlsx -mno-lsx -msimd=none -fsyntax-only %s -### 2>&1 | \ |
| 22 |
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 23 |
// RUN: %clang --target=loongarch64 -mno-lasx -mno-lsx -msimd=none -fsyntax-only %s -### 2>&1 | \ |
| 24 |
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 25 |
// RUN: %clang --target=loongarch64 -mno-lsx -msimd=none -fsyntax-only %s -### 2>&1 | \ |
| 26 |
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 27 |
|
| 28 |
// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -mlsx -msimd=none -fsyntax-only %s -### 2>&1 | \ |
| 29 |
// RUN: FileCheck %s --check-prefixes=LSX,NOLASX |
| 30 |
// RUN: %clang --target=loongarch64 -mno-lasx -mlsx -msimd=none -fsyntax-only %s -### 2>&1 | \ |
| 31 |
// RUN: FileCheck %s --check-prefixes=LSX,NOLASX |
| 32 |
// RUN: %clang --target=loongarch64 -mlsx -msimd=none -fsyntax-only %s -### 2>&1 | \ |
| 33 |
// RUN: FileCheck %s --check-prefixes=LSX,NOLASX |
| 34 |
|
| 35 |
|
| 36 |
/// COM: -msimd=lsx |
| 37 |
// RUN: %clang --target=loongarch64 -mlasx -msimd=lsx -fsyntax-only %s -### 2>&1 | \ |
| 38 |
// RUN: FileCheck %s --check-prefixes=LSX,LASX |
| 39 |
// RUN: %clang --target=loongarch64 -mlasx -mlsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \ |
| 40 |
// RUN: FileCheck %s --check-prefixes=LSX,LASX |
| 41 |
|
| 42 |
// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -mno-lsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \ |
| 43 |
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 44 |
// RUN: %clang --target=loongarch64 -mlsx -mno-lsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \ |
| 45 |
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 46 |
// RUN: %clang --target=loongarch64 -mno-lasx -mlsx -mno-lsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \ |
| 47 |
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 48 |
// RUN: %clang --target=loongarch64 -mno-lasx -mno-lsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \ |
| 49 |
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 50 |
// RUN: %clang --target=loongarch64 -mno-lsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \ |
| 51 |
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 52 |
// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -mlsx -mno-lsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \ |
| 53 |
// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 54 |
|
| 55 |
// RUN: %clang --target=loongarch64 -msimd=lsx -fsyntax-only %s -### 2>&1 | \ |
| 56 |
// RUN: FileCheck %s --check-prefixes=LSX,NOLASX |
| 57 |
// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -msimd=lsx -fsyntax-only %s -### 2>&1 | \ |
| 58 |
// RUN: FileCheck %s --check-prefixes=LSX,NOLASX |
| 59 |
// RUN: %clang --target=loongarch64 -mlsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \ |
| 60 |
// RUN: FileCheck %s --check-prefixes=LSX,NOLASX |
| 61 |
// RUN: %clang --target=loongarch64 -mno-lasx -msimd=lsx -fsyntax-only %s -### 2>&1 | \ |
| 62 |
// RUN: FileCheck %s --check-prefixes=LSX,NOLASX |
| 63 |
// RUN: %clang --target=loongarch64 -mno-lasx -mlsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \ |
| 64 |
// RUN: FileCheck %s --check-prefixes=LSX,NOLASX |
| 65 |
|
| 66 |
|
| 67 |
/// COM: -msimd=lasx |
| 68 |
// RUN: %clang --target=loongarch64 -msimd=lasx -fsyntax-only %s -### 2>&1 | \ |
| 69 |
// RUN: FileCheck %s --check-prefixes=LSX,LASX |
| 70 |
// RUN: %clang --target=loongarch64 -mlasx -msimd=lasx -fsyntax-only %s -### 2>&1 | \ |
| 71 |
// RUN: FileCheck %s --check-prefixes=LSX,LASX |
| 72 |
// RUN: %clang --target=loongarch64 -mlasx -mlsx -msimd=lasx -fsyntax-only %s -### 2>&1 | \ |
| 73 |
// RUN: FileCheck %s --check-prefixes=LSX,LASX |
| 74 |
// RUN: %clang --target=loongarch64 -mlsx -msimd=lasx -fsyntax-only %s -### 2>&1 | \ |
| 75 |
// RUN: FileCheck %s --check-prefixes=LSX,LASX |
| 76 |
|
| 77 |
// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -msimd=lasx -fsyntax-only %s -### 2>&1 | \ |
| 78 |
// RUN: FileCheck %s --check-prefixes=LSX,NOLASX |
| 79 |
// RUN: %clang --target=loongarch64 -mno-lasx -msimd=lasx -fsyntax-only %s -### 2>&1 | \ |
| 80 |
// RUN: FileCheck %s --check-prefixes=LSX,NOLASX |
| 81 |
|
| 82 |
// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -mlsx -msimd=lasx -fsyntax-only %s -### 2>&1 | \ |
| 83 |
// RUN: FileCheck %s --check-prefixes=LSX,NOLASX |
| 84 |
// RUN: %clang --target=loongarch64 -mno-lasx -mlsx -msimd=lasx -fsyntax-only %s -### 2>&1 | \ |
| 85 |
// RUN: FileCheck %s --check-prefixes=LSX,NOLASX |
| 86 |
// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -mlsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \ |
| 87 |
// RUN: FileCheck %s --check-prefixes=LSX,NOLASX |
| 88 |
|
| 89 |
|
| 90 |
// NOLSX-NOT: "-target-feature" "+lsx" |
| 91 |
// NOLASX-NOT: "-target-feature" "+lasx" |
| 92 |
// LSX-DAG: "-target-feature" "+lsx" |
| 93 |
// LASX-DAG: "-target-feature" "+lasx" |
| 94 |
// NOLSX-NOT: "-target-feature" "+lsx" |
| 95 |
// NOLASX-NOT: "-target-feature" "+lasx" |