r371522 - [clang][codegen][NFC] Make test patterns more permissive.
Clement Courbet via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 10 07:20:08 PDT 2019
Author: courbet
Date: Tue Sep 10 07:20:08 2019
New Revision: 371522
URL: http://llvm.org/viewvc/llvm-project?rev=371522&view=rev
Log:
[clang][codegen][NFC] Make test patterns more permissive.
See the discussion in:
http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20190909/692736.html
Modified:
cfe/trunk/test/CodeGenCXX/auto-var-init.cpp
Modified: cfe/trunk/test/CodeGenCXX/auto-var-init.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/auto-var-init.cpp?rev=371522&r1=371521&r2=371522&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/auto-var-init.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/auto-var-init.cpp Tue Sep 10 07:20:08 2019
@@ -1042,8 +1042,7 @@ TEST_UNINIT(intptr4, int*[4]);
// CHECK: %uninit = alloca [4 x i32*], align
// CHECK-NEXT: call void @{{.*}}used{{.*}}%uninit)
// PATTERN-O1-LABEL: @test_intptr4_uninit()
-// PATTERN-O1: %1 = bitcast [4 x i32*]* %uninit to i8*
-// PATTERN-O1-NEXT: call void @llvm.memset.p0i8.i64(i8* nonnull align 16 dereferenceable(32) %1, i8 -86, i64 32, i1 false)
+// PATTERN-O1: call void @llvm.memset.p0i8.i64(i8* nonnull align 16 dereferenceable(32) %{{[0-9*]}}, i8 -86, i64 32, i1 false)
// ZERO-LABEL: @test_intptr4_uninit()
// ZERO: call void @llvm.memset{{.*}}, i8 0,
More information about the cfe-commits
mailing list