diff options
author | Jakub Jelinek <jakub@redhat.com> | 2001-11-15 11:30:59 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2001-11-15 11:30:59 +0100 |
commit | 8f5a5db8187f51e0cbbf8bbb1b13be97fdf2fe4b (patch) | |
tree | 86ad09dc6187ff136ed398f7e2fe86d86adb0c34 /gcc/testsuite | |
parent | 2b7d71b2b932e9be61b1c1415419e6df630a0165 (diff) | |
download | gcc-8f5a5db8187f51e0cbbf8bbb1b13be97fdf2fe4b.zip gcc-8f5a5db8187f51e0cbbf8bbb1b13be97fdf2fe4b.tar.gz gcc-8f5a5db8187f51e0cbbf8bbb1b13be97fdf2fe4b.tar.bz2 |
ia64.c (ia64_adjust_cost): Handle SUBREGs.
* config/ia64/ia64.c (ia64_adjust_cost): Handle SUBREGs.
* gcc.c-torture/compile/20011114-2.c: New test.
From-SVN: r47049
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20011114-2.c | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9c2c4c8..38adc49 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,6 @@ 2001-11-15 Jakub Jelinek <jakub@redhat.com> + * gcc.c-torture/compile/20011114-2.c: New test. * gcc.c-torture/compile/20011114-4.c: New test. 2001-11-15 Nathan Sidwell <nathan@codesourcery.com> diff --git a/gcc/testsuite/gcc.c-torture/compile/20011114-2.c b/gcc/testsuite/gcc.c-torture/compile/20011114-2.c new file mode 100644 index 0000000..46f0aed --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20011114-2.c @@ -0,0 +1,13 @@ +typedef struct { int c, d, e, f, g; } D; + +void bar (unsigned long, unsigned long); +void foo (D *y) +{ + int x = 0; + + if (y->f == 0) + x |= 0x1; + if (y->g == 0) + x |= 0x2; + bar ((x << 16) | (y->c & 0xffff), (y->d << 16) | (y->e & 0xffff)); +} |