[PATCH 3/4] fix test_structs_as_args on i386
authorAndreas Beckmann <anbe@debian.org>
Wed, 24 Nov 2021 13:14:17 +0000 (14:14 +0100)
committerAndreas Beckmann <anbe@debian.org>
Tue, 12 Dec 2023 15:33:19 +0000 (16:33 +0100)
commit0d0e0311a5cd73cc6cfcafd5bcebc249a47df250
tree080e0df7830f8b02b2ddcbc93c7d19870f216be3
parentf9314016854eb39d090ca40aa52fa3e37209c758
[PATCH 3/4] fix test_structs_as_args on i386

 141/143 Test  #85: regression/struct_kernel_arguments ..................................................***Failed  Error regular expression found in output. Regex=[FAIL]  4.58 sec
 CMake Error at /build/pocl-1.4/cmake/run_test.cmake:34 (message):
  FAIL: Test exited with nonzero code (1):
  /build/pocl-1.4/obj-i686-linux-gnu/tests/regression/test_structs_as_args

  STDOUT:

  F(4: 0 != 5) F(5: -2147483648 != 6) F(6: 0 != 7) F(7: 0 != 8)

  STDERR:

 -- OK

on i386, the default alignment is 4 for 64-bit types, too

the OpenCL standard is only explicit about alignment requirements for
OpenCL types, but not for the corresponding cl_* types in C
https://github.com/KhronosGroup/OpenCL-Headers/issues/149

fixes: #801

Gbp-Pq: Name 0003-fix-test_structs_as_args-on-i386.patch
tests/regression/test_structs_as_args.cpp