35 lines · plain
1; This example originally appeared in TestingGuide.rst except here we've added2; 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-simd15; REDEFINE: %{fcflags} = -check-prefix=SIMD16; 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-simd20; REDEFINE: %{fcflags} = -check-prefix=SIMD21; 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.025; REDEFINE: %{fcflags} = -check-prefix=NO-SIMD26; 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-gnu30; REDEFINE: %{fcflags} = -check-prefix=NO-SIMD31; 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]*%\)}}35