xref: /llvm-project/clang/test/Driver/matrix.c (revision f626b1f4ca2a6fd2b6c5eea3b53c15c4502d29fa)
1 // RUN: touch %t.o
2 // RUN: %clang -flto=thin -fenable-matrix %t.o -### --target=powerpc64-ibm-aix-xcoff 2>&1 \
3 // RUN:     | FileCheck %s -check-prefix=CHECK-THINLTO-MATRIX-AIX
4 // CHECK-THINLTO-MATRIX-AIX: "-bplugin_opt:-enable-matrix"
5 
6 // RUN: %clang -flto=thin -fenable-matrix %t.o -### --target=x86_64-unknown-linux 2>&1 \
7 // RUN:     | FileCheck %s -check-prefix=CHECK-THINLTO-MATRIX
8 // CHECK-THINLTO-MATRIX: "-plugin-opt=-enable-matrix"
9 
10 // RUN: %clang -flto -ffat-lto-objects -fenable-matrix %t.o -### --target=x86_64-unknown-linux 2>&1 \
11 // RUN:     | FileCheck %s -check-prefix=CHECK-THINLTO-MATRIX
12 
13 // RUN: %clang -flto=thin -ffat-lto-objects -fenable-matrix %t.o -### --target=x86_64-unknown-linux 2>&1 \
14 // RUN:     | FileCheck %s -check-prefix=CHECK-THINLTO-MATRIX
15 
16 // RUN: %clang -flto -funified-lto -fenable-matrix %t.o -### --target=x86_64-unknown-linux 2>&1 \
17 // RUN:     | FileCheck %s -check-prefix=CHECK-THINLTO-MATRIX
18 
19 // RUN: %clang -flto=thin -funified-lto -fenable-matrix %t.o -### --target=x86_64-unknown-linux 2>&1 \
20 // RUN:     | FileCheck %s -check-prefix=CHECK-THINLTO-MATRIX
21