@@ -52,42 +52,42 @@ void test_malloc_like() {
5252// CHECK-LABEL: @_Z17test_operator_newv(
5353void test_operator_new () {
5454 // FIXME: This should not be token ID 0!
55- // CHECK: call {{.*}} ptr @__alloc_token_Znwm (i64 noundef 4, i64 0)
55+ // CHECK: call {{.*}} ptr @__alloc_token__Znwm (i64 noundef 4, i64 0)
5656 sink = __builtin_operator_new (sizeof (int ));
57- // CHECK: call {{.*}} ptr @__alloc_token_Znwm (i64 noundef 4, i64 0)
57+ // CHECK: call {{.*}} ptr @__alloc_token__Znwm (i64 noundef 4, i64 0)
5858 sink = ::operator new (sizeof (int ));
5959}
6060
6161// CHECK-LABEL: @_Z25test_operator_new_nothrowv(
6262void test_operator_new_nothrow () {
6363 // FIXME: This should not be token ID 0!
64- // CHECK: call {{.*}} ptr @__alloc_token_ZnwmRKSt9nothrow_t (i64 noundef 4, ptr {{.*}} @_ZSt7nothrow, i64 0)
64+ // CHECK: call {{.*}} ptr @__alloc_token__ZnwmRKSt9nothrow_t (i64 noundef 4, ptr {{.*}} @_ZSt7nothrow, i64 0)
6565 sink = __builtin_operator_new (sizeof (int ), std::nothrow);
66- // CHECK: call {{.*}} ptr @__alloc_token_ZnwmRKSt9nothrow_t (i64 noundef 4, ptr {{.*}} @_ZSt7nothrow, i64 0)
66+ // CHECK: call {{.*}} ptr @__alloc_token__ZnwmRKSt9nothrow_t (i64 noundef 4, ptr {{.*}} @_ZSt7nothrow, i64 0)
6767 sink = ::operator new (sizeof (int ), std::nothrow);
6868}
6969
7070// CHECK-LABEL: @_Z8test_newv(
7171int *test_new () {
72- // CHECK: call {{.*}} ptr @__alloc_token_Znwm (i64 noundef 4, i64 {{[1-9][0-9]*}}){{.*}} !alloc_token
72+ // CHECK: call {{.*}} ptr @__alloc_token__Znwm (i64 noundef 4, i64 {{[1-9][0-9]*}}){{.*}} !alloc_token
7373 return new int ;
7474}
7575
7676// CHECK-LABEL: @_Z14test_new_arrayv(
7777int *test_new_array () {
78- // CHECK: call {{.*}} ptr @__alloc_token_Znam (i64 noundef 40, i64 {{[1-9][0-9]*}}){{.*}} !alloc_token
78+ // CHECK: call {{.*}} ptr @__alloc_token__Znam (i64 noundef 40, i64 {{[1-9][0-9]*}}){{.*}} !alloc_token
7979 return new int [10 ];
8080}
8181
8282// CHECK-LABEL: @_Z16test_new_nothrowv(
8383int *test_new_nothrow () {
84- // CHECK: call {{.*}} ptr @__alloc_token_ZnwmRKSt9nothrow_t (i64 noundef 4, ptr {{.*}} @_ZSt7nothrow, i64 {{[1-9][0-9]*}}){{.*}} !alloc_token
84+ // CHECK: call {{.*}} ptr @__alloc_token__ZnwmRKSt9nothrow_t (i64 noundef 4, ptr {{.*}} @_ZSt7nothrow, i64 {{[1-9][0-9]*}}){{.*}} !alloc_token
8585 return new (std::nothrow) int ;
8686}
8787
8888// CHECK-LABEL: @_Z22test_new_array_nothrowv(
8989int *test_new_array_nothrow () {
90- // CHECK: call {{.*}} ptr @__alloc_token_ZnamRKSt9nothrow_t (i64 noundef 40, ptr {{.*}} @_ZSt7nothrow, i64 {{[1-9][0-9]*}}){{.*}} !alloc_token
90+ // CHECK: call {{.*}} ptr @__alloc_token__ZnamRKSt9nothrow_t (i64 noundef 40, ptr {{.*}} @_ZSt7nothrow, i64 {{[1-9][0-9]*}}){{.*}} !alloc_token
9191 return new (std::nothrow) int [10 ];
9292}
9393
@@ -100,10 +100,10 @@ __attribute__((no_sanitize("alloc-token"))) int *no_sanitize_new() {
100100// CHECK-LABEL: @_Z23test_size_returning_newv(
101101void test_size_returning_new () {
102102 // FIXME: This should not be token ID 0!
103- // CHECK: call { ptr, i64 } @__alloc_token_size_returning_new (i64 noundef 8, i64 0)
104- // CHECK: call { ptr, i64 } @__alloc_token_size_returning_new_hot_cold (i64 noundef 8, i8 noundef zeroext 1, i64 0)
105- // CHECK: call { ptr, i64 } @__alloc_token_size_returning_new_aligned (i64 noundef 8, i64 noundef 32, i64 0)
106- // CHECK: call { ptr, i64 } @__alloc_token_size_returning_new_aligned_hot_cold (i64 noundef 8, i64 noundef 32, i8 noundef zeroext 1, i64 0)
103+ // CHECK: call { ptr, i64 } @__alloc_token___size_returning_new (i64 noundef 8, i64 0)
104+ // CHECK: call { ptr, i64 } @__alloc_token___size_returning_new_hot_cold (i64 noundef 8, i8 noundef zeroext 1, i64 0)
105+ // CHECK: call { ptr, i64 } @__alloc_token___size_returning_new_aligned (i64 noundef 8, i64 noundef 32, i64 0)
106+ // CHECK: call { ptr, i64 } @__alloc_token___size_returning_new_aligned_hot_cold (i64 noundef 8, i64 noundef 32, i8 noundef zeroext 1, i64 0)
107107 sink = __size_returning_new (sizeof (long )).p ;
108108 sink = __size_returning_new_hot_cold (sizeof (long ), __hot_cold_t {1 }).p ;
109109 sink = __size_returning_new_aligned (sizeof (long ), std::align_val_t {32 }).p ;
@@ -122,7 +122,7 @@ void may_throw();
122122// CHECK-LABEL: @_Z27test_exception_handling_newv(
123123TestClass *test_exception_handling_new () {
124124 try {
125- // CHECK: invoke {{.*}} ptr @__alloc_token_Znwm (i64 noundef 72, i64 {{[1-9][0-9]*}})
125+ // CHECK: invoke {{.*}} ptr @__alloc_token__Znwm (i64 noundef 72, i64 {{[1-9][0-9]*}})
126126 // CHECK-NEXT: !alloc_token
127127 TestClass *obj = new TestClass ();
128128 may_throw ();
@@ -134,15 +134,15 @@ TestClass *test_exception_handling_new() {
134134
135135// CHECK-LABEL: @_Z14test_new_classv(
136136TestClass *test_new_class () {
137- // CHECK: call {{.*}} ptr @__alloc_token_Znwm (i64 noundef 72, i64 {{[1-9][0-9]*}}){{.*}} !alloc_token
137+ // CHECK: call {{.*}} ptr @__alloc_token__Znwm (i64 noundef 72, i64 {{[1-9][0-9]*}}){{.*}} !alloc_token
138138 TestClass *obj = new TestClass ();
139139 obj->data [0 ] = 42 ;
140140 return obj;
141141}
142142
143143// CHECK-LABEL: @_Z20test_new_class_arrayv(
144144TestClass *test_new_class_array () {
145- // CHECK: call {{.*}} ptr @__alloc_token_Znam (i64 noundef 728, i64 {{[1-9][0-9]*}}){{.*}} !alloc_token
145+ // CHECK: call {{.*}} ptr @__alloc_token__Znam (i64 noundef 728, i64 {{[1-9][0-9]*}}){{.*}} !alloc_token
146146 TestClass* arr = new TestClass[10 ];
147147 arr[0 ].data [0 ] = 123 ;
148148 return arr;
0 commit comments