| 1 |
/* { dg-do run } */ |
| 2 |
/* { dg-require-effective-target hwaddress_exec } */ |
| 3 |
/* { dg-shouldfail "hwasan" } */ |
| 4 |
/* { dg-additional-options "--param hwasan-instrument-allocas=0" } */ |
| 5 |
|
| 6 |
#define ARG 0 |
| 7 |
#define ALIGNMENT __attribute__ ((aligned (32))) |
| 8 |
#include "large-aligned-untagging-0.c" |
| 9 |
#undef ARG |
| 10 |
|
| 11 |
/* { dg-output "HWAddressSanitizer: tag-mismatch on address 0x\[0-9a-f\]*.*" } */ |
| 12 |
/* NOTE: This assumes the current tagging mechanism (one at a time from the |
| 13 |
base and large aligned variables being handled first). */ |
| 14 |
/* { dg-output "READ of size 4 at 0x\[0-9a-f\]* tags: \[\[:xdigit:\]\]\[\[:xdigit:\]\]/\[\[:xdigit:\]\]\[\[:xdigit:\]\] \\(ptr/mem\\) in thread T0.*" } */ |
| 15 |
/* { dg-output "Address 0x\[0-9a-f\]* is located in stack of thread T0.*" } */ |
| 16 |
/* { dg-output "SUMMARY: HWAddressSanitizer: tag-mismatch \[^\n\]*.*" } */ |