1 /* Test PC misalignment exception */
10 static void sigbus(int sig
, siginfo_t
*info
, void *vuc
)
12 assert(info
->si_code
== BUS_ADRALN
);
13 assert(info
->si_addr
== expected
);
21 struct sigaction sa
= {
22 .sa_sigaction
= sigbus
,
23 .sa_flags
= SA_SIGINFO
26 if (sigaction(SIGBUS
, &sa
, NULL
) < 0) {
31 asm volatile("adr %0, 1f + 1\n\t"
35 : "=&r"(tmp
), "=m"(expected
));