summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/catch-alignment-assumption-attribute-alloc_align-on-function-variable.cpp
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2019-01-24 19:32:49 +0000
committerRoman Lebedev <lebedev.ri@gmail.com>2019-01-24 19:32:49 +0000
commitaca0d13790b591d6b3f25c03a5ddc9a0daf2699b (patch)
treef49ecf7434ec38e303084a91737a999bbb530d6d /clang/test/CodeGen/catch-alignment-assumption-attribute-alloc_align-on-function-variable.cpp
parenta95a7105efde0cfb58ee92eb0f43646b38720b74 (diff)
downloadbcm5719-llvm-aca0d13790b591d6b3f25c03a5ddc9a0daf2699b.tar.gz
bcm5719-llvm-aca0d13790b591d6b3f25c03a5ddc9a0daf2699b.zip
[NFC][clang] Test updates for CreateAlignmentAssumption() changes in D54653
Differential Revision: https://reviews.llvm.org/D57175 llvm-svn: 352090
Diffstat (limited to 'clang/test/CodeGen/catch-alignment-assumption-attribute-alloc_align-on-function-variable.cpp')
-rw-r--r--clang/test/CodeGen/catch-alignment-assumption-attribute-alloc_align-on-function-variable.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/test/CodeGen/catch-alignment-assumption-attribute-alloc_align-on-function-variable.cpp b/clang/test/CodeGen/catch-alignment-assumption-attribute-alloc_align-on-function-variable.cpp
index 1b5a3922768..591eaa0e131 100644
--- a/clang/test/CodeGen/catch-alignment-assumption-attribute-alloc_align-on-function-variable.cpp
+++ b/clang/test/CodeGen/catch-alignment-assumption-attribute-alloc_align-on-function-variable.cpp
@@ -30,9 +30,7 @@ char **caller(char **x, unsigned long alignment) {
// CHECK-NEXT: %[[X_RELOADED:.*]] = load i8**, i8*** %[[X_ADDR]], align 8
// CHECK-NEXT: %[[ALIGNMENT_RELOADED:.*]] = load i64, i64* %[[ALIGNMENT_ADDR]], align 8
// CHECK-NEXT: %[[X_RETURNED:.*]] = call i8** @[[PASSTHROUGH]](i8** %[[X_RELOADED]], i64 %[[ALIGNMENT_RELOADED]])
- // CHECK-NEXT: %[[ISPOSITIVE:.*]] = icmp sgt i64 %[[ALIGNMENT_RELOADED]], 0
- // CHECK-NEXT: %[[POSITIVEMASK:.*]] = sub i64 %[[ALIGNMENT_RELOADED]], 1
- // CHECK-NEXT: %[[MASK:.*]] = select i1 %[[ISPOSITIVE]], i64 %[[POSITIVEMASK]], i64 0
+ // CHECK-NEXT: %[[MASK:.*]] = sub i64 %[[ALIGNMENT_RELOADED]], 1
// CHECK-NEXT: %[[PTRINT:.*]] = ptrtoint i8** %[[X_RETURNED]] to i64
// CHECK-NEXT: %[[MASKEDPTR:.*]] = and i64 %[[PTRINT]], %[[MASK]]
// CHECK-NEXT: %[[MASKCOND:.*]] = icmp eq i64 %[[MASKEDPTR]], 0
OpenPOWER on IntegriCloud