| 1 |
// RUN: %clang --target=hexagon -### %s 2>&1 | FileCheck %s --check-prefix=CHECK-DEFAULT |
| 2 |
// RUN: %clang --target=hexagon -fvectorize -### %s 2>&1 | FileCheck %s --check-prefixes=CHECK-NEEDHVX,CHECK-VECTOR |
| 3 |
// RUN: %clang --target=hexagon -fvectorize -fno-vectorize -### %s 2>&1 | FileCheck %s --check-prefix=CHECK-NOVECTOR |
| 4 |
|
| 5 |
// CHECK-DEFAULT-NOT: hexagon-autohvx |
| 6 |
// CHECK-NEEDHVX: warning: auto-vectorization requires HVX, use -mhvx/-mhvx= to enable it |
| 7 |
// CHECK-VECTOR: "-mllvm" "-hexagon-autohvx" |
| 8 |
// CHECK-NOVECTOR-NOT: hexagon-autohvx |