From: Eric Fiselier Date: Tue, 8 May 2018 07:56:05 +0000 (+0000) Subject: [C++2a] Implement operator<=>: Fix another bug in the code gen tests. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b020fdd78e4833b484d3633fc72c7fbe16788907;p=clang [C++2a] Implement operator<=>: Fix another bug in the code gen tests. Sorry for the failures. I'm quite new at writing code gen tests, and I'm not sure the best way to make them portable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@331745 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenCXX/cxx2a-compare.cpp b/test/CodeGenCXX/cxx2a-compare.cpp index 607c8334bf..ef6bb5556e 100644 --- a/test/CodeGenCXX/cxx2a-compare.cpp +++ b/test/CodeGenCXX/cxx2a-compare.cpp @@ -79,7 +79,8 @@ auto mem_ptr_test(MemPtrT x, MemPtrT y) { // CHECK: %cmp.ptr = icmp eq [[TY:i[0-9]+]] %lhs.memptr.ptr, %rhs.memptr.ptr // CHECK: %cmp.ptr.null = icmp eq [[TY]] %lhs.memptr.ptr, 0 // CHECK: %cmp.adj = icmp eq [[TY]] %lhs.memptr.adj, %rhs.memptr.adj - // CHECK: %[[OR:.*]] = or i1 %cmp.ptr.null, %cmp.adj + // CHECK: %[[OR:.*]] = or i1 + // CHECK-SAME %cmp.adj // CHECK: %memptr.eq = and i1 %cmp.ptr, %[[OR]] // CHECK: %sel.eq = select i1 %memptr.eq, i8 [[EQ]], i8 [[NE]] // CHECK: %__value_ = getelementptr inbounds %[[SE]], %[[SE]]* %[[DEST]]