diff options
Diffstat (limited to 'test/CodeGen/builtin-memfns.c')
-rw-r--r-- | test/CodeGen/builtin-memfns.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/test/CodeGen/builtin-memfns.c b/test/CodeGen/builtin-memfns.c index a7b716b..e8c407f 100644 --- a/test/CodeGen/builtin-memfns.c +++ b/test/CodeGen/builtin-memfns.c @@ -1,9 +1,11 @@ -// RUN: %clang_cc1 -triple i386-pc-linux-gnu -emit-llvm -o %t %s -// RUN: grep '@llvm.memset.i32' %t -// RUN: grep '@llvm.memcpy.i32' %t -// RUN: grep '@llvm.memmove.i32' %t -// RUN: grep __builtin %t | count 0 +// RUN: %clang_cc1 -triple i386-pc-linux-gnu -emit-llvm < %s| FileCheck %s +// CHECK: call void @llvm.memset.p0i8.i32 +// CHECK: call void @llvm.memset.p0i8.i32 +// CHECK: call void @llvm.memcpy.p0i8.p0i8.i32 +// CHECK: call void @llvm.memmove.p0i8.p0i8.i32 +// CHECK-NOT: __builtin +// CHECK: ret int main(int argc, char **argv) { unsigned char a = 0x11223344; unsigned char b = 0x11223344; |