OSDN Git Service

tests/tcg/s390x: Fix alignment of csst parameter list
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 10 Jun 2019 01:42:49 +0000 (18:42 -0700)
committerDavid Hildenbrand <david@redhat.com>
Fri, 21 Jun 2019 13:26:53 +0000 (15:26 +0200)
The parameter list given in general register 1 shall be aligned
on a quadword boundary.  This test currently succeeds or fails
depending on the compiler version used and the accidential layout
of the function's stack frame.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
tests/tcg/s390x/csst.c

index 1dae907..084d80a 100644 (file)
@@ -3,7 +3,7 @@
 
 int main(void)
 {
-    uint64_t parmlist[] = {
+    uint64_t parmlist[] __attribute__((aligned(16))) = {
         0xfedcba9876543210ull,
         0,
         0x7777777777777777ull,