diff options
Diffstat (limited to 'tools/regression/ia64/unaligned/test.c')
-rw-r--r-- | tools/regression/ia64/unaligned/test.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/regression/ia64/unaligned/test.c b/tools/regression/ia64/unaligned/test.c index dc406b1..e6c8bb4 100644 --- a/tools/regression/ia64/unaligned/test.c +++ b/tools/regression/ia64/unaligned/test.c @@ -91,18 +91,19 @@ # endif #endif -static struct { +struct { DATA_TYPE aligned; char _; char misaligned[sizeof(DATA_TYPE)]; } data; +DATA_TYPE *aligned = &data.aligned; +DATA_TYPE *misaligned = (DATA_TYPE *)data.misaligned; +DATA_TYPE value = DATA_VALUE; + int main() { - DATA_TYPE *aligned = &data.aligned; - DATA_TYPE *misaligned = (DATA_TYPE *)data.misaligned; - DATA_TYPE value = DATA_VALUE; /* Set PSR.ac. */ asm volatile("sum 8"); |