repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tm
/
pr95569.c
blob
f0b0d6f4c24a74148c87b9ab0673c61cb14dbabd
1
/* { dg-do compile } */
2
/* { dg-options "-fgnu-tm -O0" } */
3
/* { dg-do compile { target aarch64*-*-* } } */
4
5
typedef
int
__attribute__
((
vector_size
(
16
)))
vectype
;
6
vectype v
;
7
8
void
9
foo
(
int
c
)
10
{
11
vectype
*
p
=
__builtin_malloc
(
sizeof
(
vectype
));
12
__transaction_atomic
13
{
14
*
p
=
v
;
15
if
(
c
)
16
__transaction_cancel
;
17
}
18
}