[cfe-commits] r95428 - /cfe/trunk/test/CodeGen/stdcall-fastcall.c
Charles Davis
cdavis at mines.edu
Fri Feb 5 12:45:48 PST 2010
Author: cdavis
Date: Fri Feb 5 14:45:48 2010
New Revision: 95428
URL: http://llvm.org/viewvc/llvm-project?rev=95428&view=rev
Log:
Convert this test to FileCheck instead of grepping LLVM IR.
Modified:
cfe/trunk/test/CodeGen/stdcall-fastcall.c
Modified: cfe/trunk/test/CodeGen/stdcall-fastcall.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/stdcall-fastcall.c?rev=95428&r1=95427&r2=95428&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/stdcall-fastcall.c (original)
+++ cfe/trunk/test/CodeGen/stdcall-fastcall.c Fri Feb 5 14:45:48 2010
@@ -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 @@
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;
}
More information about the cfe-commits
mailing list