]> granicus.if.org Git - clang/commitdiff
Only check for volatile memcpys in test.
authorTim Northover <Tim.Northover@arm.com>
Thu, 7 Feb 2013 15:11:48 +0000 (15:11 +0000)
committerTim Northover <Tim.Northover@arm.com>
Thu, 7 Feb 2013 15:11:48 +0000 (15:11 +0000)
AArch64 handles aggFct's return struct slightly differently, leading
to an extra memcpy. This test is fortunately only concerned about
volatile copies, so we can modify the grep text to filter it.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174621 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/volatile.c

index 1a996defcf0107ed34fe502a20112add25905711..6caf7119e0f3900536038e9e25c6ff37c3d68ac7 100644 (file)
@@ -1,6 +1,6 @@
 // RUN: %clang_cc1 -emit-llvm < %s -o %t
 // RUN: grep volatile %t | count 28
-// RUN: grep memcpy %t | count 7
+// RUN: grep "memcpy.*, i1 true" %t | count 6
 
 // The number 28 comes from the current codegen for volatile loads;
 // if this number changes, it's not necessarily something wrong, but