================ @@ -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" ---------------- Leporacanthicus wrote:
It is checking the fc1 command. Just like the clang test is checking the cc1 command generated by the driver. So you're saying we should check that it's not catching some other - preprocessor, linker or something else that may have got hold of the "right" command-line argument? 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