]> granicus.if.org Git - clang/commitdiff
[C++2a] Implement operator<=>: Fix another bug in the code gen tests.
authorEric Fiselier <eric@efcs.ca>
Tue, 8 May 2018 07:56:05 +0000 (07:56 +0000)
committerEric Fiselier <eric@efcs.ca>
Tue, 8 May 2018 07:56:05 +0000 (07:56 +0000)
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

test/CodeGenCXX/cxx2a-compare.cpp

index 607c8334bf2feb13a92c11bdecf07ec590c76348..ef6bb5556e225126525e5b54e745d3d87b0db025 100644 (file)
@@ -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]]