From: Charles Davis Date: Fri, 5 Feb 2010 20:45:48 +0000 (+0000) Subject: Convert this test to FileCheck instead of grepping LLVM IR. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d82bf2d86f3e4185b3815e56f23ca0e07c15541d;p=clang Convert this test to FileCheck instead of grepping LLVM IR. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95428 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/stdcall-fastcall.c b/test/CodeGen/stdcall-fastcall.c index 1fbed300d8..24f90e0d00 100644 --- a/test/CodeGen/stdcall-fastcall.c +++ b/test/CodeGen/stdcall-fastcall.c @@ -1,13 +1,16 @@ -// RUN: %clang_cc1 -emit-llvm < %s | grep 'fastcallcc' | count 6 -// RUN: %clang_cc1 -emit-llvm < %s | grep 'stdcallcc' | count 6 +// RUN: %clang_cc1 -emit-llvm < %s | FileCheck %s void __attribute__((fastcall)) f1(void); void __attribute__((stdcall)) f2(void); void __attribute__((fastcall)) f3(void) { +// CHECK: define x86_fastcallcc void @f3() f1(); +// CHECK: call x86_fastcallcc void @f1() } void __attribute__((stdcall)) f4(void) { +// CHECK: define x86_stdcallcc void @f4() f2(); +// CHECK: call x86_stdcallcc void @f2() } // PR5280 @@ -18,7 +21,13 @@ void (__attribute__((stdcall)) *pf4)(void) = f4; int main(void) { f3(); f4(); + // CHECK: call x86_fastcallcc void @f3() + // CHECK: call x86_stdcallcc void @f4() pf1(); pf2(); pf3(); pf4(); + // CHECK: call x86_fastcallcc void %tmp() + // CHECK: call x86_stdcallcc void %tmp1() + // CHECK: call x86_fastcallcc void %tmp2() + // CHECK: call x86_stdcallcc void %tmp3() return 0; }