================ @@ -0,0 +1,55 @@ +! ----------------------------------------------------------------------------- +! Tests for the -msve-vector-bits flag (taken from the clang test) +! ----------------------------------------------------------------------------- + +! RUN: %flang -c %s -### --target=aarch64-none-linux-gnu -march=armv8-a+sve \ +! RUN: -msve-vector-bits=128 2>&1 | FileCheck --check-prefix=CHECK-128 %s +! RUN: %flang -c %s -### --target=aarch64-none-linux-gnu -march=armv8-a+sve \ +! RUN: -msve-vector-bits=256 2>&1 | FileCheck --check-prefix=CHECK-256 %s +! RUN: %flang -c %s -### --target=aarch64-none-linux-gnu -march=armv8-a+sve \ +! RUN: -msve-vector-bits=512 2>&1 | FileCheck --check-prefix=CHECK-512 %s +! RUN: %flang -c %s -### --target=aarch64-none-linux-gnu -march=armv8-a+sve \ +! RUN: -msve-vector-bits=1024 2>&1 | FileCheck --check-prefix=CHECK-1024 %s +! RUN: %flang -c %s -### --target=aarch64-none-linux-gnu -march=armv8-a+sve \ +! RUN: -msve-vector-bits=2048 2>&1 | FileCheck --check-prefix=CHECK-2048 %s +! RUN: %flang -c %s -### --target=aarch64-none-linux-gnu -march=armv8-a+sve \ +! RUN: -msve-vector-bits=128+ 2>&1 | FileCheck --check-prefix=CHECK-128P %s +! RUN: %flang -c %s -### --target=aarch64-none-linux-gnu -march=armv8-a+sve \ +! RUN: -msve-vector-bits=256+ 2>&1 | FileCheck --check-prefix=CHECK-256P %s +! RUN: %flang -c %s -### --target=aarch64-none-linux-gnu -march=armv8-a+sve \ +! RUN: -msve-vector-bits=512+ 2>&1 | FileCheck --check-prefix=CHECK-512P %s +! RUN: %flang -c %s -### --target=aarch64-none-linux-gnu -march=armv8-a+sve \ +! RUN: -msve-vector-bits=1024+ 2>&1 | FileCheck --check-prefix=CHECK-1024P %s +! RUN: %flang -c %s -### --target=aarch64-none-linux-gnu -march=armv8-a+sve \ +! RUN: -msve-vector-bits=2048+ 2>&1 | FileCheck --check-prefix=CHECK-2048P %s +! RUN: %flang -c %s -### --target=aarch64-none-linux-gnu -march=armv8-a+sve \ +! RUN: -msve-vector-bits=scalable 2>&1 | FileCheck --check-prefix=CHECK-SCALABLE %s + +! CHECK-128: "-mvscale-max=1" "-mvscale-min=1" ---------------- banach-space wrote:
Is this from `flang-new -fc1` invocation? It could be written as: ``` ! CHECK-128: "-fc1" ! CHECK-128-SAME: "-mvscale-max-1" "-mvscale-min=1" ``` https://github.com/llvm/llvm-project/pull/67676 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits