diff options
author | Jakub Jelinek <jakub@redhat.com> | 2013-12-20 14:07:10 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2013-12-20 14:07:10 +0100 |
commit | fc4f394b22144fd86324bec3c0566ad6a548bc9b (patch) | |
tree | 0126e9ccc8ab446ccc6de31510f855516a8a2ae2 /gcc | |
parent | 5502f40be2f8887008b8252e5c048d4dc8a7f062 (diff) | |
download | gcc-fc4f394b22144fd86324bec3c0566ad6a548bc9b.zip gcc-fc4f394b22144fd86324bec3c0566ad6a548bc9b.tar.gz gcc-fc4f394b22144fd86324bec3c0566ad6a548bc9b.tar.bz2 |
re PR tree-optimization/59413 (wrong code at -Os on x86_64-linux-gnu in both 32-bit and 64-bit modes)
PR tree-optimization/59413
* gcc.c-torture/execute/pr59413.c: New test.
From-SVN: r206147
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/pr59413.c | 21 |
2 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4d994b4..7e90641 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2013-12-20 Jakub Jelinek <jakub@redhat.com> + PR tree-optimization/59413 + * gcc.c-torture/execute/pr59413.c: New test. + * c-c++-common/ubsan/load-bool-enum.c: New test. 2013-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com> diff --git a/gcc/testsuite/gcc.c-torture/execute/pr59413.c b/gcc/testsuite/gcc.c-torture/execute/pr59413.c new file mode 100644 index 0000000..d7a2084 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/pr59413.c @@ -0,0 +1,21 @@ +/* PR tree-optimization/59413 */ + +typedef unsigned int uint32_t; + +uint32_t a; +int b; + +int +main () +{ + uint32_t c; + for (a = 7; a <= 1; a++) + { + char d = a; + c = d; + b = a == c; + } + if (a != 7) + __builtin_abort (); + return 0; +} |