From: Rafael Espindola Date: Fri, 13 Dec 2013 20:11:02 +0000 (+0000) Subject: Convert test to FileCheck. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e190e69b555ab4b4a0ca62190229bf1c5e0cd5c;p=clang Convert test to FileCheck. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197269 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/target-data.c b/test/CodeGen/target-data.c index 86af85ceaa..91913852ff 100644 --- a/test/CodeGen/target-data.c +++ b/test/CodeGen/target-data.c @@ -1,6 +1,11 @@ -// RUN: %clang_cc1 -triple i686-unknown-unknown -emit-llvm -o %t %s -// RUN: grep 'target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a:0:64-f80:32:32-n8:16:32-S128"' %t -// RUN: %clang_cc1 -triple i686-apple-darwin9 -emit-llvm -o %t %s -// RUN: grep 'target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a:0:64-f80:128:128-n8:16:32-S128"' %t -// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o %t %s -// RUN: grep 'target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a:0:64-s:64:64-f80:128:128-n8:16:32:64-S128"' %t +// RUN: %clang_cc1 -triple i686-unknown-unknown -emit-llvm -o - %s | \ +// RUN: FileCheck --check-prefix=I686-UNKNOWN %s +// I686-UNKNOWN: target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a:0:64-f80:32:32-n8:16:32-S128" + +// RUN: %clang_cc1 -triple i686-apple-darwin9 -emit-llvm -o - %s | \ +// RUN: FileCheck --check-prefix=I686-DARWIN %s +// I686-DARWIN: target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a:0:64-f80:128:128-n8:16:32-S128" + +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s | \ +// RUN: FileCheck --check-prefix=X86_64 %s +// X86_64: target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a:0:64-s:64:64-f80:128:128-n8:16:32:64-S128"