diff options
author | Eric Fiselier <eric@efcs.ca> | 2018-05-08 07:56:05 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2018-05-08 07:56:05 +0000 |
commit | 98a1cab6947a60d404e72a0ce719f52f4590ecd9 (patch) | |
tree | 37f53558262122d1009ea4c535900848692c9b06 | |
parent | 1c88d41020a3483554ba025c38f5cee79f15b8b5 (diff) | |
download | bcm5719-llvm-98a1cab6947a60d404e72a0ce719f52f4590ecd9.tar.gz bcm5719-llvm-98a1cab6947a60d404e72a0ce719f52f4590ecd9.zip |
[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.
llvm-svn: 331745
-rw-r--r-- | clang/test/CodeGenCXX/cxx2a-compare.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/cxx2a-compare.cpp b/clang/test/CodeGenCXX/cxx2a-compare.cpp index 607c8334bf2..ef6bb5556e2 100644 --- a/clang/test/CodeGenCXX/cxx2a-compare.cpp +++ b/clang/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]] |