diff options
author | Andrew Pinski <apinski@marvell.com> | 2023-05-08 10:58:06 -0700 |
---|---|---|
committer | Andrew Pinski <apinski@marvell.com> | 2023-05-08 11:04:27 -0700 |
commit | 5d85b5d649fff675ff00adcc99371bccf4ef5944 (patch) | |
tree | 78a5a24310c4523c9cda67a5d1ef6b96f4b779f4 /gcc | |
parent | c139f5e106fcdcd5e820541f357937c6edd7b161 (diff) | |
download | gcc-5d85b5d649fff675ff00adcc99371bccf4ef5944.zip gcc-5d85b5d649fff675ff00adcc99371bccf4ef5944.tar.gz gcc-5d85b5d649fff675ff00adcc99371bccf4ef5944.tar.bz2 |
Fix pr81192.c for int16 targets
I had missed when converting this
testcase to Gimple that there was a define
for int/unsigned type specifically to get
an INT32 type. This means when using a
literal integer constant you need to use the
`_Literal (type)` to form the types correctly on the
constants.
This fixes the issue and has been both tested on
xstormy16-elf and x86_64-linux-gnu.
Committed as obvious.
gcc/testsuite/ChangeLog:
PR testsuite/109776
* gcc.dg/pr81192.c: Fix integer constants for int16 targets.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr81192.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/gcc.dg/pr81192.c b/gcc/testsuite/gcc.dg/pr81192.c index f6d201e..c46ac18 100644 --- a/gcc/testsuite/gcc.dg/pr81192.c +++ b/gcc/testsuite/gcc.dg/pr81192.c @@ -22,21 +22,21 @@ void __GIMPLE(ssa, startwith("pre")) fn2 () goto __BB7; __BB(3): - if (j_6(D) != 2147483647) + if (j_6(D) != _Literal (int)2147483647) goto __BB4; else goto __BB5; __BB(4): - iftmp2_8 = j_6(D) + 1; + iftmp2_8 = j_6(D) + _Literal (int)1; goto __BB5; __BB(5): - b_lsm6_10 = 2147483647; + b_lsm6_10 = _Literal (int)2147483647; goto __BB6; __BB(6): - if (c0_1 != 0) + if (c0_1 != _Literal (int) 0) goto __BB3; else goto __BB8; |