diff options
author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-30 05:30:18 +0000 |
---|---|---|
committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-30 05:30:18 +0000 |
commit | eaecf1a71a461fd5a3f666dbbf777995d3679a34 (patch) | |
tree | e1be338d6c060b0ffc035bb207c74de9c0b9dd95 /gcc/testsuite/gcc.dg/vect | |
parent | acf503a40b378589b5a392d17c79ec407f46c7bf (diff) | |
download | gcc-eaecf1a71a461fd5a3f666dbbf777995d3679a34.tar.gz |
PR tree-optimization/24059
* gcc.dg/vect/pr24059.c : New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104812 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/vect')
-rw-r--r-- | gcc/testsuite/gcc.dg/vect/pr24059.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/vect/pr24059.c b/gcc/testsuite/gcc.dg/vect/pr24059.c new file mode 100644 index 00000000000..0849d15c95f --- /dev/null +++ b/gcc/testsuite/gcc.dg/vect/pr24059.c @@ -0,0 +1,16 @@ +/* { dg-do compile } */ +/* { dg-require-effective-target vect_condition } */ + +struct pred_data +{ + unsigned char codes[((int) 100)]; +}; + +void compute_predicate_codes (char *codes, struct pred_data *p) +{ + int i; + for (i = 0; i < ((int) 100); i++) + codes[i] = p->codes[i] ? 2 : 0; +} + +/* { dg-final { cleanup-tree-dump "vect" } } */ |