[X86] LowerShift - don't prematurely lower to x86 vector shift imm instructions ...
[llvm-project.git] / clang / test / CodeGen / attr-counted-by-pr88931.cpp
blob6d0c46bbbe8f9cbdf478fc2105ad520a1acaf334
1 // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 4
2 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -O2 -Wall -emit-llvm -o - %s | FileCheck %s
4 struct foo {
5 struct bar {
6 int array[];
7 bar();
8 };
9 };
11 void init(void * __attribute__((pass_dynamic_object_size(0))));
13 // CHECK-LABEL: define dso_local void @_ZN3foo3barC1Ev(
14 // CHECK-SAME: ptr noundef nonnull align 4 dereferenceable(1) [[THIS:%.*]]) unnamed_addr #[[ATTR0:[0-9]+]] align 2 {
15 // CHECK-NEXT: entry:
16 // CHECK-NEXT: tail call void @_Z4initPvU25pass_dynamic_object_size0(ptr noundef nonnull align 4 dereferenceable(1) [[THIS]], i64 noundef -1) #[[ATTR2:[0-9]+]]
17 // CHECK-NEXT: ret void
19 foo::bar::bar() {
20 init(array);