|
| 1 | +/// Test -msimd options. |
| 2 | + |
| 3 | +/// COM: -msimd=none |
| 4 | +// RUN: %clang --target=loongarch64 -mlasx -msimd=none -fsyntax-only %s -### 2>&1 | \ |
| 5 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 6 | +// RUN: FileCheck %s --check-prefixes=LSX,LASX |
| 7 | +// RUN: %clang --target=loongarch64 -mlasx -mlsx -msimd=none -fsyntax-only %s -### 2>&1 | \ |
| 8 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 9 | +// RUN: FileCheck %s --check-prefixes=LSX,LASX |
| 10 | + |
| 11 | +// RUN: %clang --target=loongarch64 -msimd=none -fsyntax-only %s -### 2>&1 | \ |
| 12 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 13 | +// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 14 | +// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -msimd=none -fsyntax-only %s -### 2>&1 | \ |
| 15 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 16 | +// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 17 | +// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -mlsx -mno-lsx -msimd=none -fsyntax-only %s -### 2>&1 | \ |
| 18 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 19 | +// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 20 | +// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -mno-lsx -msimd=none -fsyntax-only %s -### 2>&1 | \ |
| 21 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 22 | +// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 23 | +// RUN: %clang --target=loongarch64 -mlsx -mno-lsx -msimd=none -fsyntax-only %s -### 2>&1 | \ |
| 24 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 25 | +// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 26 | +// RUN: %clang --target=loongarch64 -mno-lasx -msimd=none -fsyntax-only %s -### 2>&1 | \ |
| 27 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 28 | +// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 29 | +// RUN: %clang --target=loongarch64 -mno-lasx -mlsx -mno-lsx -msimd=none -fsyntax-only %s -### 2>&1 | \ |
| 30 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 31 | +// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 32 | +// RUN: %clang --target=loongarch64 -mno-lasx -mno-lsx -msimd=none -fsyntax-only %s -### 2>&1 | \ |
| 33 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 34 | +// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 35 | +// RUN: %clang --target=loongarch64 -mno-lsx -msimd=none -fsyntax-only %s -### 2>&1 | \ |
| 36 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 37 | +// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 38 | + |
| 39 | +// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -mlsx -msimd=none -fsyntax-only %s -### 2>&1 | \ |
| 40 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 41 | +// RUN: FileCheck %s --check-prefixes=LSX,NOLASX |
| 42 | +// RUN: %clang --target=loongarch64 -mno-lasx -mlsx -msimd=none -fsyntax-only %s -### 2>&1 | \ |
| 43 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 44 | +// RUN: FileCheck %s --check-prefixes=LSX,NOLASX |
| 45 | +// RUN: %clang --target=loongarch64 -mlsx -msimd=none -fsyntax-only %s -### 2>&1 | \ |
| 46 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 47 | +// RUN: FileCheck %s --check-prefixes=LSX,NOLASX |
| 48 | + |
| 49 | + |
| 50 | +/// COM: -msimd=lsx |
| 51 | +// RUN: %clang --target=loongarch64 -mlasx -msimd=lsx -fsyntax-only %s -### 2>&1 | \ |
| 52 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 53 | +// RUN: FileCheck %s --check-prefixes=LSX,LASX |
| 54 | +// RUN: %clang --target=loongarch64 -mlasx -mlsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \ |
| 55 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 56 | +// RUN: FileCheck %s --check-prefixes=LSX,LASX |
| 57 | + |
| 58 | +// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -mno-lsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \ |
| 59 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 60 | +// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 61 | +// RUN: %clang --target=loongarch64 -mlsx -mno-lsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \ |
| 62 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 63 | +// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 64 | +// RUN: %clang --target=loongarch64 -mno-lasx -mlsx -mno-lsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \ |
| 65 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 66 | +// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 67 | +// RUN: %clang --target=loongarch64 -mno-lasx -mno-lsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \ |
| 68 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 69 | +// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 70 | +// RUN: %clang --target=loongarch64 -mno-lsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \ |
| 71 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 72 | +// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 73 | +// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -mlsx -mno-lsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \ |
| 74 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 75 | +// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 76 | + |
| 77 | +// RUN: %clang --target=loongarch64 -msimd=lsx -fsyntax-only %s -### 2>&1 | \ |
| 78 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 79 | +// RUN: FileCheck %s --check-prefixes=LSX,NOLASX |
| 80 | +// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -msimd=lsx -fsyntax-only %s -### 2>&1 | \ |
| 81 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 82 | +// RUN: FileCheck %s --check-prefixes=LSX,NOLASX |
| 83 | +// RUN: %clang --target=loongarch64 -mlsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \ |
| 84 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 85 | +// RUN: FileCheck %s --check-prefixes=LSX,NOLASX |
| 86 | +// RUN: %clang --target=loongarch64 -mno-lasx -msimd=lsx -fsyntax-only %s -### 2>&1 | \ |
| 87 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 88 | +// RUN: FileCheck %s --check-prefixes=LSX,NOLASX |
| 89 | +// RUN: %clang --target=loongarch64 -mno-lasx -mlsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \ |
| 90 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 91 | +// RUN: FileCheck %s --check-prefixes=LSX,NOLASX |
| 92 | + |
| 93 | + |
| 94 | +/// COM: -msimd=lasx |
| 95 | +// RUN: %clang --target=loongarch64 -msimd=lasx -fsyntax-only %s -### 2>&1 | \ |
| 96 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 97 | +// RUN: FileCheck %s --check-prefixes=LSX,LASX |
| 98 | +// RUN: %clang --target=loongarch64 -mlasx -msimd=lasx -fsyntax-only %s -### 2>&1 | \ |
| 99 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 100 | +// RUN: FileCheck %s --check-prefixes=LSX,LASX |
| 101 | +// RUN: %clang --target=loongarch64 -mlasx -mlsx -msimd=lasx -fsyntax-only %s -### 2>&1 | \ |
| 102 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 103 | +// RUN: FileCheck %s --check-prefixes=LSX,LASX |
| 104 | +// RUN: %clang --target=loongarch64 -mlsx -msimd=lasx -fsyntax-only %s -### 2>&1 | \ |
| 105 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 106 | +// RUN: FileCheck %s --check-prefixes=LSX,LASX |
| 107 | + |
| 108 | +// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -msimd=lasx -fsyntax-only %s -### 2>&1 | \ |
| 109 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 110 | +// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 111 | +// RUN: %clang --target=loongarch64 -mno-lasx -msimd=lasx -fsyntax-only %s -### 2>&1 | \ |
| 112 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 113 | +// RUN: FileCheck %s --check-prefixes=NOLSX,NOLASX |
| 114 | + |
| 115 | +// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -mlsx -msimd=lasx -fsyntax-only %s -### 2>&1 | \ |
| 116 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 117 | +// RUN: FileCheck %s --check-prefixes=LSX,NOLASX |
| 118 | +// RUN: %clang --target=loongarch64 -mno-lasx -mlsx -msimd=lasx -fsyntax-only %s -### 2>&1 | \ |
| 119 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 120 | +// RUN: FileCheck %s --check-prefixes=LSX,NOLASX |
| 121 | +// RUN: %clang --target=loongarch64 -mlasx -mno-lasx -mlsx -msimd=lsx -fsyntax-only %s -### 2>&1 | \ |
| 122 | +// RUN: grep -o '"-target-feature" "+[[:alnum:]]\+"' | sort -r | \ |
| 123 | +// RUN: FileCheck %s --check-prefixes=LSX,NOLASX |
| 124 | + |
| 125 | + |
| 126 | +// LSX: "-target-feature" "+lsx" |
| 127 | +// LASX: "-target-feature" "+lasx" |
| 128 | +// NOLSX-NOT: "-target-feature" "+lsx" |
| 129 | +// NOLASX-NOT: "-target-feature" "+lasx" |
0 commit comments