1 /* { dg-do compile { target { i?86-*-linux* x86_64-*-linux* } } } */
2 /* { dg-options "-fgnu-tm -O -msse2" } */
4 /* Test the TM vector logging functions. */
6 typedef int __attribute__((vector_size (16))) vectype
;
7 extern int something(void) __attribute__((transaction_safe
));
8 extern void *malloc (__SIZE_TYPE__
) __attribute__((malloc
,transaction_safe
));
16 p
= malloc (sizeof (*p
) * 100);
18 __transaction_atomic
{
19 /* p[5] is thread private, but not transaction local since the
20 malloc is outside of the transaction. We can use the logging
21 functions for this. */
30 /* { dg-final { scan-assembler "_ITM_LM128" } } */