aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/stdcall-fastcall.c
diff options
context:
space:
mode:
authorCharles Davis <cdavis@mines.edu>2010-02-05 20:45:48 +0000
committerCharles Davis <cdavis@mines.edu>2010-02-05 20:45:48 +0000
commitd82bf2d86f3e4185b3815e56f23ca0e07c15541d (patch)
treeaa6cc618ea2678d1d99af31b658f98a11d3fe958 /test/CodeGen/stdcall-fastcall.c
parent32fb4e1fd1cbd2ff006cc0e06c997e4eea2f0e28 (diff)
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
Diffstat (limited to 'test/CodeGen/stdcall-fastcall.c')
-rw-r--r--test/CodeGen/stdcall-fastcall.c13
1 files changed, 11 insertions, 2 deletions
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;
}