~lttng/urcu/trunk

  • Committer: Mathieu Desnoyers
  • Date: 2023-09-03 14:57:48 UTC
  • Revision ID: git-v1:cac31bf03005c1265ed11df29cf713f626f39c66
Tests: Add test for byte/short atomics on addresses which are not word-aligned

Add a unit test to catch architectures which do not allow byte and short
atomic operations on addresses which are not word aligned.

If an architecture supports byte and short atomic operations, it should
be valid to issue those operations on variables which are not
word-aligned, otherwise the architecture should not define
UATOMIC_HAS_ATOMIC_BYTE nor UATOMIC_HAS_ATOMIC_SHORT.

This should help identify architectures which mistakenly define
UATOMIC_HAS_ATOMIC_BYTE and UATOMIC_HAS_ATOMIC_SHORT.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I13d2f3be41749b018b39499106938b3746c419c1
Filename Latest Rev Last Changed Committer Comment Size
..
abi 1348 3 years ago Mathieu Desnoyers Add serialized ABI definition files This commit c Diff
Makefile.am 1444 1 year ago Mathieu Desnoyers Build system: use SPDX identifiers The SPDX ident 188 bytes Diff Download File