diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-02-08 13:29:22 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-02-08 13:29:22 +0000 |
commit | 3e527904ded3f4472a11d0473a5d4daca607ce77 (patch) | |
tree | 18998203ec72edbfcd8709766098cdd7edafc8d5 /gcc/testsuite/gcc.dg | |
parent | 8d35458263f3c53f3ffd56030c0280ffd57ceead (diff) | |
download | gcc-3e527904ded3f4472a11d0473a5d4daca607ce77.tar.gz |
2012-02-08 Richard Guenther <rguenther@suse.de>
PR rtl-optimization/52170
* simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
properly handle integer vector modes.
* gcc.dg/torture/pr52170.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184007 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/pr52170.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/torture/pr52170.c b/gcc/testsuite/gcc.dg/torture/pr52170.c new file mode 100644 index 00000000000..3d0a038893d --- /dev/null +++ b/gcc/testsuite/gcc.dg/torture/pr52170.c @@ -0,0 +1,17 @@ +/* { dg-do compile } */ + +typedef unsigned char uint8_t ; +typedef unsigned long uint32_t; +void f0a(uint32_t * result, uint32_t * arg1) +{ + int idx; + for (idx=0;idx<96;idx += 1) + { + uint8_t temp_5; + uint8_t temp_6; + + temp_5 = ~(*arg1); + temp_6 = (*arg1) + 1 - temp_5; + result[idx] = temp_6; + } +} |