From 52d094062c037e979ebbc2f4ed4edd793564c2d3 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Wed, 26 Apr 2006 17:57:03 +0000 Subject: [PATCH] re PR target/27282 (ICE in final_scan_insn, at final.c:2448 - could not split insn) PR middle-end/27282 * gcc.c-torture/compile/pr27282.c: New test From-SVN: r113278 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.c-torture/compile/pr27282.c | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/compile/pr27282.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e3f19e0..90b5b26 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2006-04-26 David Edelsohn + + PR middle-end/27282 + * gcc.c-torture/compile/pr27282.c: New test. + 2006-04-26 Jakub Jelinek PR middle-end/26913 diff --git a/gcc/testsuite/gcc.c-torture/compile/pr27282.c b/gcc/testsuite/gcc.c-torture/compile/pr27282.c new file mode 100644 index 0000000..ab66366 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr27282.c @@ -0,0 +1,17 @@ +/* This test used to ICE on PowerPC at -O due to combine GEN_INT bug. */ +typedef struct _ColRowInfo ColRowInfo; +typedef struct { } +GnmSheetRange; +struct _ColRowInfo +{ + float size_pts; + unsigned margin_a:3; + unsigned margin_b:3; + unsigned visible:1; +}; +colrow_equal (ColRowInfo const *a, ColRowInfo const *b) +{ + return a->size_pts == b->size_pts && a->margin_a == b->margin_a + && a->visible == b->visible; +} + -- 2.7.4