| 1 |
; This example originally appeared in TestingGuide.rst except here we've added |
| 2 |
; echo to the clang/FileCheck command line to be executed. |
| 3 |
|
| 4 |
; DEFINE: %{cflags} = |
| 5 |
; DEFINE: %{fcflags} = |
| 6 |
|
| 7 |
; DEFINE: %{check} = \ |
| 8 |
; DEFINE: echo ' \ |
| 9 |
; DEFINE: %clang_cc1 -verify -fopenmp -fopenmp-version=51 %{cflags} \ |
| 10 |
; DEFINE: -emit-llvm -o - %s | \ |
| 11 |
; DEFINE: FileCheck %{fcflags} %s \ |
| 12 |
; DEFINE: ' |
| 13 |
|
| 14 |
; REDEFINE: %{cflags} = -triple x86_64-apple-darwin10.6.0 -fopenmp-simd |
| 15 |
; REDEFINE: %{fcflags} = -check-prefix=SIMD |
| 16 |
; RUN: %{check} |
| 17 |
; CHECK:# | %clang_cc1 -verify -fopenmp -fopenmp-version=51 -triple x86_64-apple-darwin10.6.0 -fopenmp-simd -emit-llvm -o - {{.*}} | FileCheck -check-prefix=SIMD {{.*}} |
| 18 |
|
| 19 |
; REDEFINE: %{cflags} = -triple x86_64-unknown-linux-gnu -fopenmp-simd |
| 20 |
; REDEFINE: %{fcflags} = -check-prefix=SIMD |
| 21 |
; RUN: %{check} |
| 22 |
; CHECK:# | %clang_cc1 -verify -fopenmp -fopenmp-version=51 -triple x86_64-unknown-linux-gnu -fopenmp-simd -emit-llvm -o - {{.*}} | FileCheck -check-prefix=SIMD {{.*}} |
| 23 |
|
| 24 |
; REDEFINE: %{cflags} = -triple x86_64-apple-darwin10.6.0 |
| 25 |
; REDEFINE: %{fcflags} = -check-prefix=NO-SIMD |
| 26 |
; RUN: %{check} |
| 27 |
; CHECK:# | %clang_cc1 -verify -fopenmp -fopenmp-version=51 -triple x86_64-apple-darwin10.6.0 -emit-llvm -o - {{.*}} | FileCheck -check-prefix=NO-SIMD {{.*}} |
| 28 |
|
| 29 |
; REDEFINE: %{cflags} = -triple x86_64-unknown-linux-gnu |
| 30 |
; REDEFINE: %{fcflags} = -check-prefix=NO-SIMD |
| 31 |
; RUN: %{check} |
| 32 |
; CHECK:# | %clang_cc1 -verify -fopenmp -fopenmp-version=51 -triple x86_64-unknown-linux-gnu -emit-llvm -o - {{.*}} | FileCheck -check-prefix=NO-SIMD {{.*}} |
| 33 |
|
| 34 |
; CHECK: Passed: 1 {{\([0-9]*\.[0-9]*%\)}} |