diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-11-19 07:59:08 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-11-19 07:59:08 +0000 |
commit | 3afd54309961bf2b11e2be38e239ca689ac59d0a (patch) | |
tree | d835696b07cba3edf9b4313055087dc1fe3a87fc /gcc/config/i386 | |
parent | fbccfde769917f6a98ae42eb3736989159c2b218 (diff) | |
download | gcc-3afd54309961bf2b11e2be38e239ca689ac59d0a.tar.gz |
* config/i386/i386.c (print_reg): Handle QI and HI modes for
non Q regs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73730 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386')
-rw-r--r-- | gcc/config/i386/i386.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 744f5213c9a..80603716cb5 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -7072,12 +7072,17 @@ print_reg (rtx x, int code, FILE *file) /* FALLTHRU */ case 16: case 2: + normal: fputs (hi_reg_name[REGNO (x)], file); break; case 1: + if (REGNO (x) >= ARRAY_SIZE (qi_reg_name)) + goto normal; fputs (qi_reg_name[REGNO (x)], file); break; case 0: + if (REGNO (x) >= ARRAY_SIZE (qi_high_reg_name)) + goto normal; fputs (qi_high_reg_name[REGNO (x)], file); break; default: |