[testsuite] Add gcc.dg/ia64-sync-5.c
authorKwok Cheung Yeung <kcy@codesourcery.com>
Thu, 6 Aug 2020 11:52:52 +0000 (13:52 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 7 Aug 2020 05:59:28 +0000 (07:59 +0200)
commit6339f93279b24b5a61eeed2a5040b8b2a0d3ab42
tree19944d872e48f40c5b214e75188b5bd0415c222d
parenteb5f081c16bde273f0b3c24b5929c822ae502a4f
[testsuite] Add gcc.dg/ia64-sync-5.c

There currently is no sync_char_short-enabled run test that tests
__sync_val_compare_and_swap.

Fix this by copying ia64-sync-3.c and modifying it for char/short.

Tested on x86_64.

2020-08-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
    Tom de Vries  <tdevries@suse.de>

gcc/testsuite/ChangeLog:

* gcc.dg/ia64-sync-5.c: New test.
gcc/testsuite/gcc.dg/ia64-sync-5.c [new file with mode: 0644]