Fix gcc.dg/ia64-sync-5.c for architectures with unsigned char as default (PR 96519)
authorKwok Cheung Yeung <kcy@codesourcery.com>
Wed, 12 Aug 2020 12:19:11 +0000 (05:19 -0700)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Wed, 12 Aug 2020 12:24:01 +0000 (05:24 -0700)
commit36507a2c9cbac673553b043aa1817e674836c232
tree01e8347a055dc9e2275684fd9a9095011eec785e
parentfb9b3c0ff7d347934b364e3ab06d4cf56726df33
Fix gcc.dg/ia64-sync-5.c for architectures with unsigned char as default (PR 96519)

If char is unsigned, then comparisons of the char array elements against
negative integers in the test will fail as values in the array will always
be positive, and will remain so when promoted to signed int.

2020-08-12  Kwok Cheung Yeung  <kcy@codesourcery.com>

PR testsuite/96519

gcc/testsuite/
* gcc.dg/ia64-sync-5.c (AC, init_qi, test_qi): Change element type to
signed char.
gcc/testsuite/gcc.dg/ia64-sync-5.c