diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2006-01-26 02:53:15 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@gcc.gnu.org> | 2006-01-26 02:53:15 +0000 |
commit | 2ec31ce6355795a61cf6a0a4b5a6402da38cc839 (patch) | |
tree | 4589f90285b21d0a2869a0ac634b0856c8780e9b /gcc/testsuite/gcc.dg | |
parent | aaf46ef9792bbc562175b606bd1c3f225ea56924 (diff) | |
download | gcc-2ec31ce6355795a61cf6a0a4b5a6402da38cc839.zip gcc-2ec31ce6355795a61cf6a0a4b5a6402da38cc839.tar.gz gcc-2ec31ce6355795a61cf6a0a4b5a6402da38cc839.tar.bz2 |
re PR target/25947 (Unrecognizable insn ICE for readline-5.1 in rl_vi_complete)
PR target/25947
* gcc.dg/torture/pr25947-1.c: New test.
From-SVN: r110244
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/pr25947-1.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/torture/pr25947-1.c b/gcc/testsuite/gcc.dg/torture/pr25947-1.c new file mode 100644 index 0000000..d52ef8c --- /dev/null +++ b/gcc/testsuite/gcc.dg/torture/pr25947-1.c @@ -0,0 +1,21 @@ +/* PR target/25947: define_split in cris.md caused unrecognized insn. */ +/* { dg-options "-fpic" { target fpic } } */ + +extern char *rl_line_buffer; +extern int rl_point; +extern int rl_end; +static const char *vi_motion = " hl^$0ftFT;,%wbeWBE|"; +void +rl_vi_complete (int ignore, int key) +{ + if ((rl_point < rl_end) + && + (!(((rl_line_buffer[rl_point]) == ' ') + || ((rl_line_buffer[rl_point]) == '\t')))) + { + if (! + (((rl_line_buffer[rl_point + 1]) == ' ') + || ((rl_line_buffer[rl_point + 1]) == '\t'))) + rl_vi_end_word (1, 'E'); + } +} |