xref: /llvm-project/clang/test/Driver/x86-no-gather-no-scatter.cpp (revision 547ee1c81fceaabcb7064ed525f11f9e94083f56)
1 /// Tests -mno-gather and -mno-scatter
2 // RUN: %clang -target x86_64-unknown-linux-gnu -c -mno-gather -### %s 2>&1 | FileCheck --check-prefix=NOGATHER %s
3 // RUN: %clang_cl --target=x86_64-windows -c /Qgather- -### -- %s 2>&1 | FileCheck --check-prefix=NOGATHER %s
4 // NOGATHER: "-target-feature" "+prefer-no-gather"
5 
6 // RUN: %clang -target x86_64-unknown-linux-gnu -c -mno-scatter -### %s 2>&1 | FileCheck --check-prefix=NOSCATTER %s
7 // RUN: %clang_cl --target=x86_64-windows -c /Qscatter- -### -- %s 2>&1 | FileCheck --check-prefix=NOSCATTER %s
8 // NOSCATTER: "-target-feature" "+prefer-no-scatter"
9