[llvm] 332642e - Add test coverage for D116851
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 10 08:49:00 PST 2022
Author: Philip Reames
Date: 2022-01-10T08:48:49-08:00
New Revision: 332642e693509947d33ec5dbcbdc3fcf149f4a87
URL: https://github.com/llvm/llvm-project/commit/332642e693509947d33ec5dbcbdc3fcf149f4a87
DIFF: https://github.com/llvm/llvm-project/commit/332642e693509947d33ec5dbcbdc3fcf149f4a87.diff
LOG: Add test coverage for D116851
Added:
Modified:
llvm/test/Transforms/InstCombine/deref-alloc-fns.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/InstCombine/deref-alloc-fns.ll b/llvm/test/Transforms/InstCombine/deref-alloc-fns.ll
index cf272fce8bee..2f5d1320a2f2 100644
--- a/llvm/test/Transforms/InstCombine/deref-alloc-fns.ll
+++ b/llvm/test/Transforms/InstCombine/deref-alloc-fns.ll
@@ -11,6 +11,8 @@ declare noalias nonnull i8* @_Znwm(i64) ; throwing version of 'new'
declare noalias i8* @strdup(i8*)
declare noalias i8* @aligned_alloc(i64, i64)
declare noalias align 16 i8* @memalign(i64, i64)
+; new[](unsigned int, align_val_t)
+declare noalias i8* @_ZnajSt11align_val_t(i65 %size, i64 %align)
@.str = private unnamed_addr constant [6 x i8] c"hello\00", align 1
@@ -343,3 +345,12 @@ bb:
ret i8* %call
}
+define noalias i8* @op_new_align() {
+; CHECK-LABEL: @op_new_align(
+; CHECK-NEXT: [[CALL:%.*]] = tail call i8* @_ZnajSt11align_val_t(i65 32, i64 32)
+; CHECK-NEXT: ret i8* [[CALL]]
+;
+ %call = tail call i8* @_ZnajSt11align_val_t(i65 32, i64 32)
+ ret i8* %call
+}
+
More information about the llvm-commits
mailing list