~ubuntu-branches/debian/jessie/gdb/jessie

« back to all changes in this revision

Viewing changes to opcodes/m32c-ibld.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Jacobowitz
  • Date: 2010-03-20 01:21:29 UTC
  • mfrom: (1.3.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20100320012129-t7h25y8zgr8c2369
Tags: 7.1-1
* New upstream release, including:
  - PIE support (Closes: #346409).
  - C++ improvements, including static_cast<> et al, namespace imports,
    and bug fixes in printing virtual base classes.
  - Multi-program debugging.  One GDB can now debug multiple programs
    at the same time.
  - Python scripting improvements, including gdb.parse_and_eval.
  - Updated MIPS Linux signal frame layout (Closes: #570875).
  - No internal error stepping over _dl_debug_state (Closes: #569551).
* Update to Standards-Version: 3.8.4 (no changes required).
* Include more relevant (and smaller) docs in the gdbserver package
  (Closes: #571132).
* Do not duplicate documentation in gdb64, gdb-source, and libgdb-dev.
* Fix crash when switching into TUI mode (Closes: #568489).

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
   - the resultant file is machine generated, cgen-ibld.in isn't
5
5
 
6
6
   Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2005, 2006, 2007,
7
 
   2008  Free Software Foundation, Inc.
 
7
   2008, 2010  Free Software Foundation, Inc.
8
8
 
9
9
   This file is part of libopcodes.
10
10
 
33
33
#include "symcat.h"
34
34
#include "m32c-desc.h"
35
35
#include "m32c-opc.h"
 
36
#include "cgen/basic-modes.h"
36
37
#include "opintl.h"
37
38
#include "safe-ctype.h"
38
39
 
137
138
  if (length == 0)
138
139
    return NULL;
139
140
 
140
 
  if (word_length > 32)
 
141
  if (word_length > 8 * sizeof (CGEN_INSN_INT))
141
142
    abort ();
142
143
 
143
144
  /* For architectures with insns smaller than the base-insn-bitsize,
441
442
      return 1;
442
443
    }
443
444
 
444
 
  if (word_length > 32)
 
445
  if (word_length > 8 * sizeof (CGEN_INSN_INT))
445
446
    abort ();
446
447
 
447
448
  /* For architectures with insns smaller than the insn-base-bitsize,
468
469
    {
469
470
      unsigned char *bufp = ex_info->insn_bytes + word_offset / 8;
470
471
 
471
 
      if (word_length > 32)
 
472
      if (word_length > 8 * sizeof (CGEN_INSN_INT))
472
473
        abort ();
473
474
 
474
475
      if (fill_cache (cd, ex_info, word_offset / 8, word_length / 8, pc) == 0)
582
583
      {
583
584
{
584
585
  FLD (f_7_1) = ((((FLD (f_imm3_S)) - (1))) & (1));
585
 
  FLD (f_2_2) = ((((unsigned int) (((FLD (f_imm3_S)) - (1))) >> (1))) & (3));
 
586
  FLD (f_2_2) = ((((UINT) (((FLD (f_imm3_S)) - (1))) >> (1))) & (3));
586
587
}
587
588
        errmsg = insert_normal (cd, fields->f_2_2, 0, 0, 2, 2, 32, total_length, buffer);
588
589
        if (errmsg)
601
602
    case M32C_OPERAND_BIT32RNPREFIXED :
602
603
      {
603
604
        long value = fields->f_dst32_rn_prefixed_QI;
604
 
        value = (((((((~ (value))) << (1))) & (2))) | (((((unsigned int) (value) >> (1))) & (1))));
 
605
        value = (((((((~ (value))) << (1))) & (2))) | (((((USI) (value) >> (1))) & (1))));
605
606
        errmsg = insert_normal (cd, value, 0, 0, 16, 2, 32, total_length, buffer);
606
607
      }
607
608
      break;
608
609
    case M32C_OPERAND_BIT32RNUNPREFIXED :
609
610
      {
610
611
        long value = fields->f_dst32_rn_unprefixed_QI;
611
 
        value = (((((((~ (value))) << (1))) & (2))) | (((((unsigned int) (value) >> (1))) & (1))));
 
612
        value = (((((((~ (value))) << (1))) & (2))) | (((((USI) (value) >> (1))) & (1))));
612
613
        errmsg = insert_normal (cd, value, 0, 0, 8, 2, 32, total_length, buffer);
613
614
      }
614
615
      break;
618
619
    case M32C_OPERAND_BITBASE16_16_U16 :
619
620
      {
620
621
        long value = fields->f_dsp_16_u16;
621
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
622
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
622
623
        errmsg = insert_normal (cd, value, 0, 0, 16, 16, 32, total_length, buffer);
623
624
      }
624
625
      break;
629
630
      {
630
631
{
631
632
  FLD (f_bitno16_S) = ((FLD (f_bitbase16_u11_S)) & (7));
632
 
  FLD (f_dsp_8_u8) = ((((unsigned int) (FLD (f_bitbase16_u11_S)) >> (3))) & (255));
 
633
  FLD (f_dsp_8_u8) = ((((UINT) (FLD (f_bitbase16_u11_S)) >> (3))) & (255));
633
634
}
634
635
        errmsg = insert_normal (cd, fields->f_bitno16_S, 0, 0, 5, 3, 32, total_length, buffer);
635
636
        if (errmsg)
643
644
      {
644
645
{
645
646
  FLD (f_bitno32_unprefixed) = ((FLD (f_bitbase32_16_s11_unprefixed)) & (7));
646
 
  FLD (f_dsp_16_s8) = ((int) (FLD (f_bitbase32_16_s11_unprefixed)) >> (3));
 
647
  FLD (f_dsp_16_s8) = ((INT) (FLD (f_bitbase32_16_s11_unprefixed)) >> (3));
647
648
}
648
649
        errmsg = insert_normal (cd, fields->f_bitno32_unprefixed, 0, 0, 13, 3, 32, total_length, buffer);
649
650
        if (errmsg)
657
658
      {
658
659
{
659
660
  FLD (f_bitno32_unprefixed) = ((FLD (f_bitbase32_16_s19_unprefixed)) & (7));
660
 
  FLD (f_dsp_16_s16) = ((int) (FLD (f_bitbase32_16_s19_unprefixed)) >> (3));
 
661
  FLD (f_dsp_16_s16) = ((INT) (FLD (f_bitbase32_16_s19_unprefixed)) >> (3));
661
662
}
662
663
        errmsg = insert_normal (cd, fields->f_bitno32_unprefixed, 0, 0, 13, 3, 32, total_length, buffer);
663
664
        if (errmsg)
664
665
          break;
665
666
        {
666
667
        long value = fields->f_dsp_16_s16;
667
 
        value = EXTHISI (((HI) (INT) (((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
 
668
        value = EXTHISI (((HI) (INT) (((((((UINT) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
668
669
        errmsg = insert_normal (cd, value, 0|(1<<CGEN_IFLD_SIGNED), 0, 16, 16, 32, total_length, buffer);
669
670
      }
670
671
        if (errmsg)
675
676
      {
676
677
{
677
678
  FLD (f_bitno32_unprefixed) = ((FLD (f_bitbase32_16_u11_unprefixed)) & (7));
678
 
  FLD (f_dsp_16_u8) = ((((unsigned int) (FLD (f_bitbase32_16_u11_unprefixed)) >> (3))) & (255));
 
679
  FLD (f_dsp_16_u8) = ((((UINT) (FLD (f_bitbase32_16_u11_unprefixed)) >> (3))) & (255));
679
680
}
680
681
        errmsg = insert_normal (cd, fields->f_bitno32_unprefixed, 0, 0, 13, 3, 32, total_length, buffer);
681
682
        if (errmsg)
689
690
      {
690
691
{
691
692
  FLD (f_bitno32_unprefixed) = ((FLD (f_bitbase32_16_u19_unprefixed)) & (7));
692
 
  FLD (f_dsp_16_u16) = ((((unsigned int) (FLD (f_bitbase32_16_u19_unprefixed)) >> (3))) & (65535));
 
693
  FLD (f_dsp_16_u16) = ((((UINT) (FLD (f_bitbase32_16_u19_unprefixed)) >> (3))) & (65535));
693
694
}
694
695
        errmsg = insert_normal (cd, fields->f_bitno32_unprefixed, 0, 0, 13, 3, 32, total_length, buffer);
695
696
        if (errmsg)
696
697
          break;
697
698
        {
698
699
        long value = fields->f_dsp_16_u16;
699
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
700
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
700
701
        errmsg = insert_normal (cd, value, 0, 0, 16, 16, 32, total_length, buffer);
701
702
      }
702
703
        if (errmsg)
707
708
      {
708
709
{
709
710
  FLD (f_bitno32_unprefixed) = ((FLD (f_bitbase32_16_u27_unprefixed)) & (7));
710
 
  FLD (f_dsp_16_u16) = ((((unsigned int) (FLD (f_bitbase32_16_u27_unprefixed)) >> (3))) & (65535));
711
 
  FLD (f_dsp_32_u8) = ((((unsigned int) (FLD (f_bitbase32_16_u27_unprefixed)) >> (19))) & (255));
 
711
  FLD (f_dsp_16_u16) = ((((UINT) (FLD (f_bitbase32_16_u27_unprefixed)) >> (3))) & (65535));
 
712
  FLD (f_dsp_32_u8) = ((((UINT) (FLD (f_bitbase32_16_u27_unprefixed)) >> (19))) & (255));
712
713
}
713
714
        errmsg = insert_normal (cd, fields->f_bitno32_unprefixed, 0, 0, 13, 3, 32, total_length, buffer);
714
715
        if (errmsg)
715
716
          break;
716
717
        {
717
718
        long value = fields->f_dsp_16_u16;
718
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
719
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
719
720
        errmsg = insert_normal (cd, value, 0, 0, 16, 16, 32, total_length, buffer);
720
721
      }
721
722
        if (errmsg)
729
730
      {
730
731
{
731
732
  FLD (f_bitno32_prefixed) = ((FLD (f_bitbase32_24_s11_prefixed)) & (7));
732
 
  FLD (f_dsp_24_s8) = ((int) (FLD (f_bitbase32_24_s11_prefixed)) >> (3));
 
733
  FLD (f_dsp_24_s8) = ((INT) (FLD (f_bitbase32_24_s11_prefixed)) >> (3));
733
734
}
734
735
        errmsg = insert_normal (cd, fields->f_bitno32_prefixed, 0, 0, 21, 3, 32, total_length, buffer);
735
736
        if (errmsg)
743
744
      {
744
745
{
745
746
  FLD (f_bitno32_prefixed) = ((FLD (f_bitbase32_24_s19_prefixed)) & (7));
746
 
  FLD (f_dsp_24_u8) = ((((unsigned int) (FLD (f_bitbase32_24_s19_prefixed)) >> (3))) & (255));
747
 
  FLD (f_dsp_32_s8) = ((int) (FLD (f_bitbase32_24_s19_prefixed)) >> (11));
 
747
  FLD (f_dsp_24_u8) = ((((UINT) (FLD (f_bitbase32_24_s19_prefixed)) >> (3))) & (255));
 
748
  FLD (f_dsp_32_s8) = ((INT) (FLD (f_bitbase32_24_s19_prefixed)) >> (11));
748
749
}
749
750
        errmsg = insert_normal (cd, fields->f_bitno32_prefixed, 0, 0, 21, 3, 32, total_length, buffer);
750
751
        if (errmsg)
761
762
      {
762
763
{
763
764
  FLD (f_bitno32_prefixed) = ((FLD (f_bitbase32_24_u11_prefixed)) & (7));
764
 
  FLD (f_dsp_24_u8) = ((((unsigned int) (FLD (f_bitbase32_24_u11_prefixed)) >> (3))) & (255));
 
765
  FLD (f_dsp_24_u8) = ((((UINT) (FLD (f_bitbase32_24_u11_prefixed)) >> (3))) & (255));
765
766
}
766
767
        errmsg = insert_normal (cd, fields->f_bitno32_prefixed, 0, 0, 21, 3, 32, total_length, buffer);
767
768
        if (errmsg)
775
776
      {
776
777
{
777
778
  FLD (f_bitno32_prefixed) = ((FLD (f_bitbase32_24_u19_prefixed)) & (7));
778
 
  FLD (f_dsp_24_u8) = ((((unsigned int) (FLD (f_bitbase32_24_u19_prefixed)) >> (3))) & (255));
779
 
  FLD (f_dsp_32_u8) = ((((unsigned int) (FLD (f_bitbase32_24_u19_prefixed)) >> (11))) & (255));
 
779
  FLD (f_dsp_24_u8) = ((((UINT) (FLD (f_bitbase32_24_u19_prefixed)) >> (3))) & (255));
 
780
  FLD (f_dsp_32_u8) = ((((UINT) (FLD (f_bitbase32_24_u19_prefixed)) >> (11))) & (255));
780
781
}
781
782
        errmsg = insert_normal (cd, fields->f_bitno32_prefixed, 0, 0, 21, 3, 32, total_length, buffer);
782
783
        if (errmsg)
793
794
      {
794
795
{
795
796
  FLD (f_bitno32_prefixed) = ((FLD (f_bitbase32_24_u27_prefixed)) & (7));
796
 
  FLD (f_dsp_24_u8) = ((((unsigned int) (FLD (f_bitbase32_24_u27_prefixed)) >> (3))) & (255));
797
 
  FLD (f_dsp_32_u16) = ((((unsigned int) (FLD (f_bitbase32_24_u27_prefixed)) >> (11))) & (65535));
 
797
  FLD (f_dsp_24_u8) = ((((UINT) (FLD (f_bitbase32_24_u27_prefixed)) >> (3))) & (255));
 
798
  FLD (f_dsp_32_u16) = ((((UINT) (FLD (f_bitbase32_24_u27_prefixed)) >> (11))) & (65535));
798
799
}
799
800
        errmsg = insert_normal (cd, fields->f_bitno32_prefixed, 0, 0, 21, 3, 32, total_length, buffer);
800
801
        if (errmsg)
804
805
          break;
805
806
        {
806
807
        long value = fields->f_dsp_32_u16;
807
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
808
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
808
809
        errmsg = insert_normal (cd, value, 0, 32, 0, 16, 32, total_length, buffer);
809
810
      }
810
811
        if (errmsg)
826
827
    case M32C_OPERAND_DSP_16_S16 :
827
828
      {
828
829
        long value = fields->f_dsp_16_s16;
829
 
        value = EXTHISI (((HI) (INT) (((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
 
830
        value = EXTHISI (((HI) (INT) (((((((UINT) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
830
831
        errmsg = insert_normal (cd, value, 0|(1<<CGEN_IFLD_SIGNED), 0, 16, 16, 32, total_length, buffer);
831
832
      }
832
833
      break;
836
837
    case M32C_OPERAND_DSP_16_U16 :
837
838
      {
838
839
        long value = fields->f_dsp_16_u16;
839
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
840
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
840
841
        errmsg = insert_normal (cd, value, 0, 0, 16, 16, 32, total_length, buffer);
841
842
      }
842
843
      break;
844
845
      {
845
846
{
846
847
  FLD (f_dsp_16_u16) = ((FLD (f_dsp_16_u24)) & (65535));
847
 
  FLD (f_dsp_32_u8) = ((((unsigned int) (FLD (f_dsp_16_u24)) >> (16))) & (255));
 
848
  FLD (f_dsp_32_u8) = ((((UINT) (FLD (f_dsp_16_u24)) >> (16))) & (255));
848
849
}
849
850
        {
850
851
        long value = fields->f_dsp_16_u16;
851
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
852
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
852
853
        errmsg = insert_normal (cd, value, 0, 0, 16, 16, 32, total_length, buffer);
853
854
      }
854
855
        if (errmsg)
862
863
      {
863
864
{
864
865
  FLD (f_dsp_16_u16) = ((FLD (f_dsp_16_u24)) & (65535));
865
 
  FLD (f_dsp_32_u8) = ((((unsigned int) (FLD (f_dsp_16_u24)) >> (16))) & (255));
 
866
  FLD (f_dsp_32_u8) = ((((UINT) (FLD (f_dsp_16_u24)) >> (16))) & (255));
866
867
}
867
868
        {
868
869
        long value = fields->f_dsp_16_u16;
869
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
870
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
870
871
        errmsg = insert_normal (cd, value, 0, 0, 16, 16, 32, total_length, buffer);
871
872
      }
872
873
        if (errmsg)
883
884
      {
884
885
{
885
886
  FLD (f_dsp_24_u8) = ((FLD (f_dsp_24_s16)) & (255));
886
 
  FLD (f_dsp_32_u8) = ((((unsigned int) (FLD (f_dsp_24_s16)) >> (8))) & (255));
 
887
  FLD (f_dsp_32_u8) = ((((UINT) (FLD (f_dsp_24_s16)) >> (8))) & (255));
887
888
}
888
889
        errmsg = insert_normal (cd, fields->f_dsp_24_u8, 0, 0, 24, 8, 32, total_length, buffer);
889
890
        if (errmsg)
900
901
      {
901
902
{
902
903
  FLD (f_dsp_24_u8) = ((FLD (f_dsp_24_u16)) & (255));
903
 
  FLD (f_dsp_32_u8) = ((((unsigned int) (FLD (f_dsp_24_u16)) >> (8))) & (255));
 
904
  FLD (f_dsp_32_u8) = ((((UINT) (FLD (f_dsp_24_u16)) >> (8))) & (255));
904
905
}
905
906
        errmsg = insert_normal (cd, fields->f_dsp_24_u8, 0, 0, 24, 8, 32, total_length, buffer);
906
907
        if (errmsg)
914
915
      {
915
916
{
916
917
  FLD (f_dsp_24_u8) = ((FLD (f_dsp_24_u24)) & (255));
917
 
  FLD (f_dsp_32_u16) = ((((unsigned int) (FLD (f_dsp_24_u24)) >> (8))) & (65535));
 
918
  FLD (f_dsp_32_u16) = ((((UINT) (FLD (f_dsp_24_u24)) >> (8))) & (65535));
918
919
}
919
920
        errmsg = insert_normal (cd, fields->f_dsp_24_u8, 0, 0, 24, 8, 32, total_length, buffer);
920
921
        if (errmsg)
921
922
          break;
922
923
        {
923
924
        long value = fields->f_dsp_32_u16;
924
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
925
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
925
926
        errmsg = insert_normal (cd, value, 0, 32, 0, 16, 32, total_length, buffer);
926
927
      }
927
928
        if (errmsg)
932
933
      {
933
934
{
934
935
  FLD (f_dsp_24_u8) = ((FLD (f_dsp_24_u24)) & (255));
935
 
  FLD (f_dsp_32_u16) = ((((unsigned int) (FLD (f_dsp_24_u24)) >> (8))) & (65535));
 
936
  FLD (f_dsp_32_u16) = ((((UINT) (FLD (f_dsp_24_u24)) >> (8))) & (65535));
936
937
}
937
938
        errmsg = insert_normal (cd, fields->f_dsp_24_u8, 0, 0, 24, 8, 32, total_length, buffer);
938
939
        if (errmsg)
939
940
          break;
940
941
        {
941
942
        long value = fields->f_dsp_32_u16;
942
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
943
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
943
944
        errmsg = insert_normal (cd, value, 0, 32, 0, 16, 32, total_length, buffer);
944
945
      }
945
946
        if (errmsg)
952
953
    case M32C_OPERAND_DSP_32_S16 :
953
954
      {
954
955
        long value = fields->f_dsp_32_s16;
955
 
        value = EXTHISI (((HI) (INT) (((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
 
956
        value = EXTHISI (((HI) (INT) (((((((UINT) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
956
957
        errmsg = insert_normal (cd, value, 0|(1<<CGEN_IFLD_SIGNED), 32, 0, 16, 32, total_length, buffer);
957
958
      }
958
959
      break;
962
963
    case M32C_OPERAND_DSP_32_U16 :
963
964
      {
964
965
        long value = fields->f_dsp_32_u16;
965
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
966
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
966
967
        errmsg = insert_normal (cd, value, 0, 32, 0, 16, 32, total_length, buffer);
967
968
      }
968
969
      break;
969
970
    case M32C_OPERAND_DSP_32_U20 :
970
971
      {
971
972
        long value = fields->f_dsp_32_u24;
972
 
        value = ((((((((unsigned int) (value) >> (16))) & (255))) | (((value) & (65280))))) | (((((value) << (16))) & (16711680))));
 
973
        value = ((((((((USI) (value) >> (16))) & (255))) | (((value) & (65280))))) | (((((value) << (16))) & (16711680))));
973
974
        errmsg = insert_normal (cd, value, 0, 32, 0, 24, 32, total_length, buffer);
974
975
      }
975
976
      break;
976
977
    case M32C_OPERAND_DSP_32_U24 :
977
978
      {
978
979
        long value = fields->f_dsp_32_u24;
979
 
        value = ((((((((unsigned int) (value) >> (16))) & (255))) | (((value) & (65280))))) | (((((value) << (16))) & (16711680))));
 
980
        value = ((((((((USI) (value) >> (16))) & (255))) | (((value) & (65280))))) | (((((value) << (16))) & (16711680))));
980
981
        errmsg = insert_normal (cd, value, 0, 32, 0, 24, 32, total_length, buffer);
981
982
      }
982
983
      break;
986
987
    case M32C_OPERAND_DSP_40_S16 :
987
988
      {
988
989
        long value = fields->f_dsp_40_s16;
989
 
        value = EXTHISI (((HI) (INT) (((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
 
990
        value = EXTHISI (((HI) (INT) (((((((UINT) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
990
991
        errmsg = insert_normal (cd, value, 0|(1<<CGEN_IFLD_SIGNED), 32, 8, 16, 32, total_length, buffer);
991
992
      }
992
993
      break;
996
997
    case M32C_OPERAND_DSP_40_U16 :
997
998
      {
998
999
        long value = fields->f_dsp_40_u16;
999
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
1000
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
1000
1001
        errmsg = insert_normal (cd, value, 0, 32, 8, 16, 32, total_length, buffer);
1001
1002
      }
1002
1003
      break;
1003
1004
    case M32C_OPERAND_DSP_40_U20 :
1004
1005
      {
1005
1006
        long value = fields->f_dsp_40_u20;
1006
 
        value = ((((((((unsigned int) (value) >> (16))) & (255))) | (((value) & (65280))))) | (((((value) << (16))) & (983040))));
 
1007
        value = ((((((((USI) (value) >> (16))) & (255))) | (((value) & (65280))))) | (((((value) << (16))) & (983040))));
1007
1008
        errmsg = insert_normal (cd, value, 0, 32, 8, 20, 32, total_length, buffer);
1008
1009
      }
1009
1010
      break;
1010
1011
    case M32C_OPERAND_DSP_40_U24 :
1011
1012
      {
1012
1013
        long value = fields->f_dsp_40_u24;
1013
 
        value = ((((((((unsigned int) (value) >> (16))) & (255))) | (((value) & (65280))))) | (((((value) << (16))) & (16711680))));
 
1014
        value = ((((((((USI) (value) >> (16))) & (255))) | (((value) & (65280))))) | (((((value) << (16))) & (16711680))));
1014
1015
        errmsg = insert_normal (cd, value, 0, 32, 8, 24, 32, total_length, buffer);
1015
1016
      }
1016
1017
      break;
1020
1021
    case M32C_OPERAND_DSP_48_S16 :
1021
1022
      {
1022
1023
        long value = fields->f_dsp_48_s16;
1023
 
        value = EXTHISI (((HI) (INT) (((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
 
1024
        value = EXTHISI (((HI) (INT) (((((((UINT) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
1024
1025
        errmsg = insert_normal (cd, value, 0|(1<<CGEN_IFLD_SIGNED), 32, 16, 16, 32, total_length, buffer);
1025
1026
      }
1026
1027
      break;
1030
1031
    case M32C_OPERAND_DSP_48_U16 :
1031
1032
      {
1032
1033
        long value = fields->f_dsp_48_u16;
1033
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
1034
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
1034
1035
        errmsg = insert_normal (cd, value, 0, 32, 16, 16, 32, total_length, buffer);
1035
1036
      }
1036
1037
      break;
1037
1038
    case M32C_OPERAND_DSP_48_U20 :
1038
1039
      {
1039
1040
{
1040
 
  FLD (f_dsp_64_u8) = ((((unsigned int) (FLD (f_dsp_48_u20)) >> (16))) & (15));
 
1041
  FLD (f_dsp_64_u8) = ((((UINT) (FLD (f_dsp_48_u20)) >> (16))) & (15));
1041
1042
  FLD (f_dsp_48_u16) = ((FLD (f_dsp_48_u20)) & (65535));
1042
1043
}
1043
1044
        {
1044
1045
        long value = fields->f_dsp_48_u16;
1045
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
1046
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
1046
1047
        errmsg = insert_normal (cd, value, 0, 32, 16, 16, 32, total_length, buffer);
1047
1048
      }
1048
1049
        if (errmsg)
1055
1056
    case M32C_OPERAND_DSP_48_U24 :
1056
1057
      {
1057
1058
{
1058
 
  FLD (f_dsp_64_u8) = ((((unsigned int) (FLD (f_dsp_48_u24)) >> (16))) & (255));
 
1059
  FLD (f_dsp_64_u8) = ((((UINT) (FLD (f_dsp_48_u24)) >> (16))) & (255));
1059
1060
  FLD (f_dsp_48_u16) = ((FLD (f_dsp_48_u24)) & (65535));
1060
1061
}
1061
1062
        {
1062
1063
        long value = fields->f_dsp_48_u16;
1063
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
1064
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
1064
1065
        errmsg = insert_normal (cd, value, 0, 32, 16, 16, 32, total_length, buffer);
1065
1066
      }
1066
1067
        if (errmsg)
1076
1077
    case M32C_OPERAND_DSP_8_S24 :
1077
1078
      {
1078
1079
        long value = fields->f_dsp_8_s24;
1079
 
        value = ((((((unsigned int) (value) >> (16))) | (((value) & (65280))))) | (((EXTQISI (TRUNCSIQI (((value) & (255))))) << (16))));
 
1080
        value = ((((((USI) (value) >> (16))) | (((value) & (65280))))) | (((EXTQISI (TRUNCSIQI (((value) & (255))))) << (16))));
1080
1081
        errmsg = insert_normal (cd, value, 0|(1<<CGEN_IFLD_SIGNED), 0, 8, 24, 32, total_length, buffer);
1081
1082
      }
1082
1083
      break;
1086
1087
    case M32C_OPERAND_DSP_8_U16 :
1087
1088
      {
1088
1089
        long value = fields->f_dsp_8_u16;
1089
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
1090
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
1090
1091
        errmsg = insert_normal (cd, value, 0, 0, 8, 16, 32, total_length, buffer);
1091
1092
      }
1092
1093
      break;
1093
1094
    case M32C_OPERAND_DSP_8_U24 :
1094
1095
      {
1095
1096
        long value = fields->f_dsp_8_u24;
1096
 
        value = ((((((unsigned int) (value) >> (16))) | (((value) & (65280))))) | (((((value) & (255))) << (16))));
 
1097
        value = ((((((USI) (value) >> (16))) | (((value) & (65280))))) | (((((value) & (255))) << (16))));
1097
1098
        errmsg = insert_normal (cd, value, 0, 0, 8, 24, 32, total_length, buffer);
1098
1099
      }
1099
1100
      break;
1183
1184
    case M32C_OPERAND_DST32RNPREFIXEDQI :
1184
1185
      {
1185
1186
        long value = fields->f_dst32_rn_prefixed_QI;
1186
 
        value = (((((((~ (value))) << (1))) & (2))) | (((((unsigned int) (value) >> (1))) & (1))));
 
1187
        value = (((((((~ (value))) << (1))) & (2))) | (((((USI) (value) >> (1))) & (1))));
1187
1188
        errmsg = insert_normal (cd, value, 0, 0, 16, 2, 32, total_length, buffer);
1188
1189
      }
1189
1190
      break;
1204
1205
    case M32C_OPERAND_DST32RNUNPREFIXEDQI :
1205
1206
      {
1206
1207
        long value = fields->f_dst32_rn_unprefixed_QI;
1207
 
        value = (((((((~ (value))) << (1))) & (2))) | (((((unsigned int) (value) >> (1))) & (1))));
 
1208
        value = (((((((~ (value))) << (1))) & (2))) | (((((USI) (value) >> (1))) & (1))));
1208
1209
        errmsg = insert_normal (cd, value, 0, 0, 8, 2, 32, total_length, buffer);
1209
1210
      }
1210
1211
      break;
1229
1230
    case M32C_OPERAND_IMM_16_HI :
1230
1231
      {
1231
1232
        long value = fields->f_dsp_16_s16;
1232
 
        value = EXTHISI (((HI) (INT) (((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
 
1233
        value = EXTHISI (((HI) (INT) (((((((UINT) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
1233
1234
        errmsg = insert_normal (cd, value, 0|(1<<CGEN_IFLD_SIGNED), 0, 16, 16, 32, total_length, buffer);
1234
1235
      }
1235
1236
      break;
1239
1240
    case M32C_OPERAND_IMM_16_SI :
1240
1241
      {
1241
1242
{
1242
 
  FLD (f_dsp_32_u16) = ((((unsigned int) (FLD (f_dsp_16_s32)) >> (16))) & (65535));
 
1243
  FLD (f_dsp_32_u16) = ((((UINT) (FLD (f_dsp_16_s32)) >> (16))) & (65535));
1243
1244
  FLD (f_dsp_16_u16) = ((FLD (f_dsp_16_s32)) & (65535));
1244
1245
}
1245
1246
        {
1246
1247
        long value = fields->f_dsp_16_u16;
1247
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
1248
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
1248
1249
        errmsg = insert_normal (cd, value, 0, 0, 16, 16, 32, total_length, buffer);
1249
1250
      }
1250
1251
        if (errmsg)
1251
1252
          break;
1252
1253
        {
1253
1254
        long value = fields->f_dsp_32_u16;
1254
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
1255
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
1255
1256
        errmsg = insert_normal (cd, value, 0, 32, 0, 16, 32, total_length, buffer);
1256
1257
      }
1257
1258
        if (errmsg)
1265
1266
      {
1266
1267
{
1267
1268
  FLD (f_dsp_24_u8) = ((FLD (f_dsp_24_s16)) & (255));
1268
 
  FLD (f_dsp_32_u8) = ((((unsigned int) (FLD (f_dsp_24_s16)) >> (8))) & (255));
 
1269
  FLD (f_dsp_32_u8) = ((((UINT) (FLD (f_dsp_24_s16)) >> (8))) & (255));
1269
1270
}
1270
1271
        errmsg = insert_normal (cd, fields->f_dsp_24_u8, 0, 0, 24, 8, 32, total_length, buffer);
1271
1272
        if (errmsg)
1281
1282
    case M32C_OPERAND_IMM_24_SI :
1282
1283
      {
1283
1284
{
1284
 
  FLD (f_dsp_32_u24) = ((((unsigned int) (FLD (f_dsp_24_s32)) >> (8))) & (16777215));
 
1285
  FLD (f_dsp_32_u24) = ((((UINT) (FLD (f_dsp_24_s32)) >> (8))) & (16777215));
1285
1286
  FLD (f_dsp_24_u8) = ((FLD (f_dsp_24_s32)) & (255));
1286
1287
}
1287
1288
        errmsg = insert_normal (cd, fields->f_dsp_24_u8, 0, 0, 24, 8, 32, total_length, buffer);
1289
1290
          break;
1290
1291
        {
1291
1292
        long value = fields->f_dsp_32_u24;
1292
 
        value = ((((((((unsigned int) (value) >> (16))) & (255))) | (((value) & (65280))))) | (((((value) << (16))) & (16711680))));
 
1293
        value = ((((((((USI) (value) >> (16))) & (255))) | (((value) & (65280))))) | (((((value) << (16))) & (16711680))));
1293
1294
        errmsg = insert_normal (cd, value, 0, 32, 0, 24, 32, total_length, buffer);
1294
1295
      }
1295
1296
        if (errmsg)
1299
1300
    case M32C_OPERAND_IMM_32_HI :
1300
1301
      {
1301
1302
        long value = fields->f_dsp_32_s16;
1302
 
        value = EXTHISI (((HI) (INT) (((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
 
1303
        value = EXTHISI (((HI) (INT) (((((((UINT) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
1303
1304
        errmsg = insert_normal (cd, value, 0|(1<<CGEN_IFLD_SIGNED), 32, 0, 16, 32, total_length, buffer);
1304
1305
      }
1305
1306
      break;
1309
1310
    case M32C_OPERAND_IMM_32_SI :
1310
1311
      {
1311
1312
        long value = fields->f_dsp_32_s32;
1312
 
        value = EXTSISI (((((((((unsigned int) (value) >> (24))) & (255))) | (((((unsigned int) (value) >> (8))) & (65280))))) | (((((((value) << (8))) & (16711680))) | (((((value) << (24))) & (0xff000000)))))));
 
1313
        value = EXTSISI (((((((((UINT) (value) >> (24))) & (255))) | (((((UINT) (value) >> (8))) & (65280))))) | (((((((value) << (8))) & (16711680))) | (((((value) << (24))) & (0xff000000)))))));
1313
1314
        errmsg = insert_normal (cd, value, 0|(1<<CGEN_IFLD_SIGNED), 32, 0, 32, 32, total_length, buffer);
1314
1315
      }
1315
1316
      break;
1316
1317
    case M32C_OPERAND_IMM_40_HI :
1317
1318
      {
1318
1319
        long value = fields->f_dsp_40_s16;
1319
 
        value = EXTHISI (((HI) (INT) (((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
 
1320
        value = EXTHISI (((HI) (INT) (((((((UINT) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
1320
1321
        errmsg = insert_normal (cd, value, 0|(1<<CGEN_IFLD_SIGNED), 32, 8, 16, 32, total_length, buffer);
1321
1322
      }
1322
1323
      break;
1326
1327
    case M32C_OPERAND_IMM_40_SI :
1327
1328
      {
1328
1329
{
1329
 
  FLD (f_dsp_64_u8) = ((((unsigned int) (FLD (f_dsp_40_s32)) >> (24))) & (255));
 
1330
  FLD (f_dsp_64_u8) = ((((UINT) (FLD (f_dsp_40_s32)) >> (24))) & (255));
1330
1331
  FLD (f_dsp_40_u24) = ((FLD (f_dsp_40_s32)) & (16777215));
1331
1332
}
1332
1333
        {
1333
1334
        long value = fields->f_dsp_40_u24;
1334
 
        value = ((((((((unsigned int) (value) >> (16))) & (255))) | (((value) & (65280))))) | (((((value) << (16))) & (16711680))));
 
1335
        value = ((((((((USI) (value) >> (16))) & (255))) | (((value) & (65280))))) | (((((value) << (16))) & (16711680))));
1335
1336
        errmsg = insert_normal (cd, value, 0, 32, 8, 24, 32, total_length, buffer);
1336
1337
      }
1337
1338
        if (errmsg)
1344
1345
    case M32C_OPERAND_IMM_48_HI :
1345
1346
      {
1346
1347
        long value = fields->f_dsp_48_s16;
1347
 
        value = EXTHISI (((HI) (INT) (((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
 
1348
        value = EXTHISI (((HI) (INT) (((((((UINT) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
1348
1349
        errmsg = insert_normal (cd, value, 0|(1<<CGEN_IFLD_SIGNED), 32, 16, 16, 32, total_length, buffer);
1349
1350
      }
1350
1351
      break;
1354
1355
    case M32C_OPERAND_IMM_48_SI :
1355
1356
      {
1356
1357
{
1357
 
  FLD (f_dsp_64_u16) = ((((unsigned int) (FLD (f_dsp_48_s32)) >> (16))) & (65535));
 
1358
  FLD (f_dsp_64_u16) = ((((UINT) (FLD (f_dsp_48_s32)) >> (16))) & (65535));
1358
1359
  FLD (f_dsp_48_u16) = ((FLD (f_dsp_48_s32)) & (65535));
1359
1360
}
1360
1361
        {
1361
1362
        long value = fields->f_dsp_48_u16;
1362
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
1363
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
1363
1364
        errmsg = insert_normal (cd, value, 0, 32, 16, 16, 32, total_length, buffer);
1364
1365
      }
1365
1366
        if (errmsg)
1366
1367
          break;
1367
1368
        {
1368
1369
        long value = fields->f_dsp_64_u16;
1369
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
1370
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
1370
1371
        errmsg = insert_normal (cd, value, 0, 64, 0, 16, 32, total_length, buffer);
1371
1372
      }
1372
1373
        if (errmsg)
1377
1378
      {
1378
1379
{
1379
1380
  FLD (f_dsp_56_u8) = ((FLD (f_dsp_56_s16)) & (255));
1380
 
  FLD (f_dsp_64_u8) = ((((unsigned int) (FLD (f_dsp_56_s16)) >> (8))) & (255));
 
1381
  FLD (f_dsp_64_u8) = ((((UINT) (FLD (f_dsp_56_s16)) >> (8))) & (255));
1381
1382
}
1382
1383
        errmsg = insert_normal (cd, fields->f_dsp_56_u8, 0, 32, 24, 8, 32, total_length, buffer);
1383
1384
        if (errmsg)
1393
1394
    case M32C_OPERAND_IMM_64_HI :
1394
1395
      {
1395
1396
        long value = fields->f_dsp_64_s16;
1396
 
        value = EXTHISI (((HI) (INT) (((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
 
1397
        value = EXTHISI (((HI) (INT) (((((((UINT) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
1397
1398
        errmsg = insert_normal (cd, value, 0|(1<<CGEN_IFLD_SIGNED), 64, 0, 16, 32, total_length, buffer);
1398
1399
      }
1399
1400
      break;
1400
1401
    case M32C_OPERAND_IMM_8_HI :
1401
1402
      {
1402
1403
        long value = fields->f_dsp_8_s16;
1403
 
        value = EXTHISI (((HI) (INT) (((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
 
1404
        value = EXTHISI (((HI) (INT) (((((((UINT) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
1404
1405
        errmsg = insert_normal (cd, value, 0|(1<<CGEN_IFLD_SIGNED), 0, 8, 16, 32, total_length, buffer);
1405
1406
      }
1406
1407
      break;
1433
1434
      {
1434
1435
{
1435
1436
  FLD (f_7_1) = ((((FLD (f_imm3_S)) - (1))) & (1));
1436
 
  FLD (f_2_2) = ((((unsigned int) (((FLD (f_imm3_S)) - (1))) >> (1))) & (3));
 
1437
  FLD (f_2_2) = ((((UINT) (((FLD (f_imm3_S)) - (1))) >> (1))) & (3));
1437
1438
}
1438
1439
        errmsg = insert_normal (cd, fields->f_2_2, 0, 0, 2, 2, 32, total_length, buffer);
1439
1440
        if (errmsg)
1481
1482
    case M32C_OPERAND_LAB_8_16 :
1482
1483
      {
1483
1484
        long value = fields->f_lab_8_16;
1484
 
        value = ((((((((value) - (((pc) + (1))))) & (255))) << (8))) | (((unsigned int) (((((value) - (((pc) + (1))))) & (65535))) >> (8))));
 
1485
        value = ((((((((value) - (((pc) + (1))))) & (255))) << (8))) | (((USI) (((((value) - (((pc) + (1))))) & (65535))) >> (8))));
1485
1486
        errmsg = insert_normal (cd, value, 0|(1<<CGEN_IFLD_SIGN_OPT)|(1<<CGEN_IFLD_PCREL_ADDR), 0, 8, 16, 32, total_length, buffer);
1486
1487
      }
1487
1488
      break;
1488
1489
    case M32C_OPERAND_LAB_8_24 :
1489
1490
      {
1490
1491
        long value = fields->f_lab_8_24;
1491
 
        value = ((((((unsigned int) (value) >> (16))) | (((value) & (65280))))) | (((((value) & (255))) << (16))));
 
1492
        value = ((((((USI) (value) >> (16))) | (((value) & (65280))))) | (((((value) & (255))) << (16))));
1492
1493
        errmsg = insert_normal (cd, value, 0|(1<<CGEN_IFLD_ABS_ADDR), 0, 8, 24, 32, total_length, buffer);
1493
1494
      }
1494
1495
      break;
1505
1506
  SI tmp_val;
1506
1507
  tmp_val = ((((FLD (f_lab32_jmp_s)) - (pc))) - (2));
1507
1508
  FLD (f_7_1) = ((tmp_val) & (1));
1508
 
  FLD (f_2_2) = ((unsigned int) (tmp_val) >> (1));
 
1509
  FLD (f_2_2) = ((USI) (tmp_val) >> (1));
1509
1510
}
1510
1511
        errmsg = insert_normal (cd, fields->f_2_2, 0, 0, 2, 2, 32, total_length, buffer);
1511
1512
        if (errmsg)
1595
1596
    case M32C_OPERAND_SRC32RNPREFIXEDQI :
1596
1597
      {
1597
1598
        long value = fields->f_src32_rn_prefixed_QI;
1598
 
        value = (((((((~ (value))) << (1))) & (2))) | (((((unsigned int) (value) >> (1))) & (1))));
 
1599
        value = (((((((~ (value))) << (1))) & (2))) | (((((USI) (value) >> (1))) & (1))));
1599
1600
        errmsg = insert_normal (cd, value, 0, 0, 18, 2, 32, total_length, buffer);
1600
1601
      }
1601
1602
      break;
1616
1617
    case M32C_OPERAND_SRC32RNUNPREFIXEDQI :
1617
1618
      {
1618
1619
        long value = fields->f_src32_rn_unprefixed_QI;
1619
 
        value = (((((((~ (value))) << (1))) & (2))) | (((((unsigned int) (value) >> (1))) & (1))));
 
1620
        value = (((((((~ (value))) << (1))) & (2))) | (((((USI) (value) >> (1))) & (1))));
1620
1621
        errmsg = insert_normal (cd, value, 0, 0, 10, 2, 32, total_length, buffer);
1621
1622
      }
1622
1623
      break;
1655
1656
    case M32C_OPERAND_COND32 :
1656
1657
      {
1657
1658
{
1658
 
  FLD (f_9_1) = ((((unsigned int) (FLD (f_cond32)) >> (3))) & (1));
 
1659
  FLD (f_9_1) = ((((UINT) (FLD (f_cond32)) >> (3))) & (1));
1659
1660
  FLD (f_13_3) = ((FLD (f_cond32)) & (7));
1660
1661
}
1661
1662
        errmsg = insert_normal (cd, fields->f_9_1, 0, 0, 9, 1, 32, total_length, buffer);
1681
1682
    case M32C_OPERAND_COND32J :
1682
1683
      {
1683
1684
{
1684
 
  FLD (f_1_3) = ((((unsigned int) (FLD (f_cond32j)) >> (1))) & (7));
 
1685
  FLD (f_1_3) = ((((UINT) (FLD (f_cond32j)) >> (1))) & (7));
1685
1686
  FLD (f_7_1) = ((FLD (f_cond32j)) & (1));
1686
1687
}
1687
1688
        errmsg = insert_normal (cd, fields->f_1_3, 0, 0, 1, 3, 32, total_length, buffer);
1798
1799
      {
1799
1800
        long value;
1800
1801
        length = extract_normal (cd, ex_info, insn_value, 0, 0, 16, 2, 32, total_length, pc, & value);
1801
 
        value = (((((~ (((unsigned int) (value) >> (1))))) & (1))) | (((((value) << (1))) & (2))));
 
1802
        value = (((((~ (((USI) (value) >> (1))))) & (1))) | (((((value) << (1))) & (2))));
1802
1803
        fields->f_dst32_rn_prefixed_QI = value;
1803
1804
      }
1804
1805
      break;
1806
1807
      {
1807
1808
        long value;
1808
1809
        length = extract_normal (cd, ex_info, insn_value, 0, 0, 8, 2, 32, total_length, pc, & value);
1809
 
        value = (((((~ (((unsigned int) (value) >> (1))))) & (1))) | (((((value) << (1))) & (2))));
 
1810
        value = (((((~ (((USI) (value) >> (1))))) & (1))) | (((((value) << (1))) & (2))));
1810
1811
        fields->f_dst32_rn_unprefixed_QI = value;
1811
1812
      }
1812
1813
      break;
1817
1818
      {
1818
1819
        long value;
1819
1820
        length = extract_normal (cd, ex_info, insn_value, 0, 0, 16, 16, 32, total_length, pc, & value);
1820
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
1821
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
1821
1822
        fields->f_dsp_16_u16 = value;
1822
1823
      }
1823
1824
      break;
1853
1854
        {
1854
1855
        long value;
1855
1856
        length = extract_normal (cd, ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGNED), 0, 16, 16, 32, total_length, pc, & value);
1856
 
        value = EXTHISI (((HI) (INT) (((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
 
1857
        value = EXTHISI (((HI) (INT) (((((((UINT) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
1857
1858
        fields->f_dsp_16_s16 = value;
1858
1859
      }
1859
1860
        if (length <= 0) break;
1880
1881
        {
1881
1882
        long value;
1882
1883
        length = extract_normal (cd, ex_info, insn_value, 0, 0, 16, 16, 32, total_length, pc, & value);
1883
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
1884
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
1884
1885
        fields->f_dsp_16_u16 = value;
1885
1886
      }
1886
1887
        if (length <= 0) break;
1896
1897
        {
1897
1898
        long value;
1898
1899
        length = extract_normal (cd, ex_info, insn_value, 0, 0, 16, 16, 32, total_length, pc, & value);
1899
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
1900
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
1900
1901
        fields->f_dsp_16_u16 = value;
1901
1902
      }
1902
1903
        if (length <= 0) break;
1964
1965
        {
1965
1966
        long value;
1966
1967
        length = extract_normal (cd, ex_info, insn_value, 0, 32, 0, 16, 32, total_length, pc, & value);
1967
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
1968
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
1968
1969
        fields->f_dsp_32_u16 = value;
1969
1970
      }
1970
1971
        if (length <= 0) break;
1989
1990
      {
1990
1991
        long value;
1991
1992
        length = extract_normal (cd, ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGNED), 0, 16, 16, 32, total_length, pc, & value);
1992
 
        value = EXTHISI (((HI) (INT) (((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
 
1993
        value = EXTHISI (((HI) (INT) (((((((UINT) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
1993
1994
        fields->f_dsp_16_s16 = value;
1994
1995
      }
1995
1996
      break;
2000
2001
      {
2001
2002
        long value;
2002
2003
        length = extract_normal (cd, ex_info, insn_value, 0, 0, 16, 16, 32, total_length, pc, & value);
2003
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
2004
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
2004
2005
        fields->f_dsp_16_u16 = value;
2005
2006
      }
2006
2007
      break;
2009
2010
        {
2010
2011
        long value;
2011
2012
        length = extract_normal (cd, ex_info, insn_value, 0, 0, 16, 16, 32, total_length, pc, & value);
2012
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
2013
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
2013
2014
        fields->f_dsp_16_u16 = value;
2014
2015
      }
2015
2016
        if (length <= 0) break;
2025
2026
        {
2026
2027
        long value;
2027
2028
        length = extract_normal (cd, ex_info, insn_value, 0, 0, 16, 16, 32, total_length, pc, & value);
2028
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
2029
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
2029
2030
        fields->f_dsp_16_u16 = value;
2030
2031
      }
2031
2032
        if (length <= 0) break;
2071
2072
        {
2072
2073
        long value;
2073
2074
        length = extract_normal (cd, ex_info, insn_value, 0, 32, 0, 16, 32, total_length, pc, & value);
2074
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
2075
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
2075
2076
        fields->f_dsp_32_u16 = value;
2076
2077
      }
2077
2078
        if (length <= 0) break;
2087
2088
        {
2088
2089
        long value;
2089
2090
        length = extract_normal (cd, ex_info, insn_value, 0, 32, 0, 16, 32, total_length, pc, & value);
2090
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
2091
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
2091
2092
        fields->f_dsp_32_u16 = value;
2092
2093
      }
2093
2094
        if (length <= 0) break;
2103
2104
      {
2104
2105
        long value;
2105
2106
        length = extract_normal (cd, ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGNED), 32, 0, 16, 32, total_length, pc, & value);
2106
 
        value = EXTHISI (((HI) (INT) (((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
 
2107
        value = EXTHISI (((HI) (INT) (((((((UINT) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
2107
2108
        fields->f_dsp_32_s16 = value;
2108
2109
      }
2109
2110
      break;
2114
2115
      {
2115
2116
        long value;
2116
2117
        length = extract_normal (cd, ex_info, insn_value, 0, 32, 0, 16, 32, total_length, pc, & value);
2117
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
2118
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
2118
2119
        fields->f_dsp_32_u16 = value;
2119
2120
      }
2120
2121
      break;
2122
2123
      {
2123
2124
        long value;
2124
2125
        length = extract_normal (cd, ex_info, insn_value, 0, 32, 0, 24, 32, total_length, pc, & value);
2125
 
        value = ((((((((unsigned int) (value) >> (16))) & (255))) | (((value) & (65280))))) | (((((value) << (16))) & (16711680))));
 
2126
        value = ((((((((USI) (value) >> (16))) & (255))) | (((value) & (65280))))) | (((((value) << (16))) & (16711680))));
2126
2127
        fields->f_dsp_32_u24 = value;
2127
2128
      }
2128
2129
      break;
2130
2131
      {
2131
2132
        long value;
2132
2133
        length = extract_normal (cd, ex_info, insn_value, 0, 32, 0, 24, 32, total_length, pc, & value);
2133
 
        value = ((((((((unsigned int) (value) >> (16))) & (255))) | (((value) & (65280))))) | (((((value) << (16))) & (16711680))));
 
2134
        value = ((((((((USI) (value) >> (16))) & (255))) | (((value) & (65280))))) | (((((value) << (16))) & (16711680))));
2134
2135
        fields->f_dsp_32_u24 = value;
2135
2136
      }
2136
2137
      break;
2141
2142
      {
2142
2143
        long value;
2143
2144
        length = extract_normal (cd, ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGNED), 32, 8, 16, 32, total_length, pc, & value);
2144
 
        value = EXTHISI (((HI) (INT) (((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
 
2145
        value = EXTHISI (((HI) (INT) (((((((UINT) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
2145
2146
        fields->f_dsp_40_s16 = value;
2146
2147
      }
2147
2148
      break;
2152
2153
      {
2153
2154
        long value;
2154
2155
        length = extract_normal (cd, ex_info, insn_value, 0, 32, 8, 16, 32, total_length, pc, & value);
2155
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
2156
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
2156
2157
        fields->f_dsp_40_u16 = value;
2157
2158
      }
2158
2159
      break;
2160
2161
      {
2161
2162
        long value;
2162
2163
        length = extract_normal (cd, ex_info, insn_value, 0, 32, 8, 20, 32, total_length, pc, & value);
2163
 
        value = ((((((((unsigned int) (value) >> (16))) & (255))) | (((value) & (65280))))) | (((((value) << (16))) & (983040))));
 
2164
        value = ((((((((USI) (value) >> (16))) & (255))) | (((value) & (65280))))) | (((((value) << (16))) & (983040))));
2164
2165
        fields->f_dsp_40_u20 = value;
2165
2166
      }
2166
2167
      break;
2168
2169
      {
2169
2170
        long value;
2170
2171
        length = extract_normal (cd, ex_info, insn_value, 0, 32, 8, 24, 32, total_length, pc, & value);
2171
 
        value = ((((((((unsigned int) (value) >> (16))) & (255))) | (((value) & (65280))))) | (((((value) << (16))) & (16711680))));
 
2172
        value = ((((((((USI) (value) >> (16))) & (255))) | (((value) & (65280))))) | (((((value) << (16))) & (16711680))));
2172
2173
        fields->f_dsp_40_u24 = value;
2173
2174
      }
2174
2175
      break;
2179
2180
      {
2180
2181
        long value;
2181
2182
        length = extract_normal (cd, ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGNED), 32, 16, 16, 32, total_length, pc, & value);
2182
 
        value = EXTHISI (((HI) (INT) (((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
 
2183
        value = EXTHISI (((HI) (INT) (((((((UINT) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
2183
2184
        fields->f_dsp_48_s16 = value;
2184
2185
      }
2185
2186
      break;
2190
2191
      {
2191
2192
        long value;
2192
2193
        length = extract_normal (cd, ex_info, insn_value, 0, 32, 16, 16, 32, total_length, pc, & value);
2193
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
2194
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
2194
2195
        fields->f_dsp_48_u16 = value;
2195
2196
      }
2196
2197
      break;
2199
2200
        {
2200
2201
        long value;
2201
2202
        length = extract_normal (cd, ex_info, insn_value, 0, 32, 16, 16, 32, total_length, pc, & value);
2202
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
2203
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
2203
2204
        fields->f_dsp_48_u16 = value;
2204
2205
      }
2205
2206
        if (length <= 0) break;
2215
2216
        {
2216
2217
        long value;
2217
2218
        length = extract_normal (cd, ex_info, insn_value, 0, 32, 16, 16, 32, total_length, pc, & value);
2218
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
2219
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
2219
2220
        fields->f_dsp_48_u16 = value;
2220
2221
      }
2221
2222
        if (length <= 0) break;
2233
2234
      {
2234
2235
        long value;
2235
2236
        length = extract_normal (cd, ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGNED), 0, 8, 24, 32, total_length, pc, & value);
2236
 
        value = ((((((unsigned int) (value) >> (16))) | (((value) & (65280))))) | (((EXTQISI (TRUNCSIQI (((value) & (255))))) << (16))));
 
2237
        value = ((((((USI) (value) >> (16))) | (((value) & (65280))))) | (((EXTQISI (TRUNCSIQI (((value) & (255))))) << (16))));
2237
2238
        fields->f_dsp_8_s24 = value;
2238
2239
      }
2239
2240
      break;
2244
2245
      {
2245
2246
        long value;
2246
2247
        length = extract_normal (cd, ex_info, insn_value, 0, 0, 8, 16, 32, total_length, pc, & value);
2247
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
2248
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
2248
2249
        fields->f_dsp_8_u16 = value;
2249
2250
      }
2250
2251
      break;
2252
2253
      {
2253
2254
        long value;
2254
2255
        length = extract_normal (cd, ex_info, insn_value, 0, 0, 8, 24, 32, total_length, pc, & value);
2255
 
        value = ((((((unsigned int) (value) >> (16))) | (((value) & (65280))))) | (((((value) & (255))) << (16))));
 
2256
        value = ((((((USI) (value) >> (16))) | (((value) & (65280))))) | (((((value) & (255))) << (16))));
2256
2257
        fields->f_dsp_8_u24 = value;
2257
2258
      }
2258
2259
      break;
2344
2345
      {
2345
2346
        long value;
2346
2347
        length = extract_normal (cd, ex_info, insn_value, 0, 0, 16, 2, 32, total_length, pc, & value);
2347
 
        value = (((((~ (((unsigned int) (value) >> (1))))) & (1))) | (((((value) << (1))) & (2))));
 
2348
        value = (((((~ (((USI) (value) >> (1))))) & (1))) | (((((value) << (1))) & (2))));
2348
2349
        fields->f_dst32_rn_prefixed_QI = value;
2349
2350
      }
2350
2351
      break;
2368
2369
      {
2369
2370
        long value;
2370
2371
        length = extract_normal (cd, ex_info, insn_value, 0, 0, 8, 2, 32, total_length, pc, & value);
2371
 
        value = (((((~ (((unsigned int) (value) >> (1))))) & (1))) | (((((value) << (1))) & (2))));
 
2372
        value = (((((~ (((USI) (value) >> (1))))) & (1))) | (((((value) << (1))) & (2))));
2372
2373
        fields->f_dst32_rn_unprefixed_QI = value;
2373
2374
      }
2374
2375
      break;
2395
2396
      {
2396
2397
        long value;
2397
2398
        length = extract_normal (cd, ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGNED), 0, 16, 16, 32, total_length, pc, & value);
2398
 
        value = EXTHISI (((HI) (INT) (((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
 
2399
        value = EXTHISI (((HI) (INT) (((((((UINT) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
2399
2400
        fields->f_dsp_16_s16 = value;
2400
2401
      }
2401
2402
      break;
2407
2408
        {
2408
2409
        long value;
2409
2410
        length = extract_normal (cd, ex_info, insn_value, 0, 0, 16, 16, 32, total_length, pc, & value);
2410
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
2411
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
2411
2412
        fields->f_dsp_16_u16 = value;
2412
2413
      }
2413
2414
        if (length <= 0) break;
2414
2415
        {
2415
2416
        long value;
2416
2417
        length = extract_normal (cd, ex_info, insn_value, 0, 32, 0, 16, 32, total_length, pc, & value);
2417
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
2418
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
2418
2419
        fields->f_dsp_32_u16 = value;
2419
2420
      }
2420
2421
        if (length <= 0) break;
2447
2448
        {
2448
2449
        long value;
2449
2450
        length = extract_normal (cd, ex_info, insn_value, 0, 32, 0, 24, 32, total_length, pc, & value);
2450
 
        value = ((((((((unsigned int) (value) >> (16))) & (255))) | (((value) & (65280))))) | (((((value) << (16))) & (16711680))));
 
2451
        value = ((((((((USI) (value) >> (16))) & (255))) | (((value) & (65280))))) | (((((value) << (16))) & (16711680))));
2451
2452
        fields->f_dsp_32_u24 = value;
2452
2453
      }
2453
2454
        if (length <= 0) break;
2460
2461
      {
2461
2462
        long value;
2462
2463
        length = extract_normal (cd, ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGNED), 32, 0, 16, 32, total_length, pc, & value);
2463
 
        value = EXTHISI (((HI) (INT) (((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
 
2464
        value = EXTHISI (((HI) (INT) (((((((UINT) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
2464
2465
        fields->f_dsp_32_s16 = value;
2465
2466
      }
2466
2467
      break;
2471
2472
      {
2472
2473
        long value;
2473
2474
        length = extract_normal (cd, ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGNED), 32, 0, 32, 32, total_length, pc, & value);
2474
 
        value = EXTSISI (((((((((unsigned int) (value) >> (24))) & (255))) | (((((unsigned int) (value) >> (8))) & (65280))))) | (((((((value) << (8))) & (16711680))) | (((((value) << (24))) & (0xff000000)))))));
 
2475
        value = EXTSISI (((((((((UINT) (value) >> (24))) & (255))) | (((((UINT) (value) >> (8))) & (65280))))) | (((((((value) << (8))) & (16711680))) | (((((value) << (24))) & (0xff000000)))))));
2475
2476
        fields->f_dsp_32_s32 = value;
2476
2477
      }
2477
2478
      break;
2479
2480
      {
2480
2481
        long value;
2481
2482
        length = extract_normal (cd, ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGNED), 32, 8, 16, 32, total_length, pc, & value);
2482
 
        value = EXTHISI (((HI) (INT) (((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
 
2483
        value = EXTHISI (((HI) (INT) (((((((UINT) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
2483
2484
        fields->f_dsp_40_s16 = value;
2484
2485
      }
2485
2486
      break;
2491
2492
        {
2492
2493
        long value;
2493
2494
        length = extract_normal (cd, ex_info, insn_value, 0, 32, 8, 24, 32, total_length, pc, & value);
2494
 
        value = ((((((((unsigned int) (value) >> (16))) & (255))) | (((value) & (65280))))) | (((((value) << (16))) & (16711680))));
 
2495
        value = ((((((((USI) (value) >> (16))) & (255))) | (((value) & (65280))))) | (((((value) << (16))) & (16711680))));
2495
2496
        fields->f_dsp_40_u24 = value;
2496
2497
      }
2497
2498
        if (length <= 0) break;
2506
2507
      {
2507
2508
        long value;
2508
2509
        length = extract_normal (cd, ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGNED), 32, 16, 16, 32, total_length, pc, & value);
2509
 
        value = EXTHISI (((HI) (INT) (((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
 
2510
        value = EXTHISI (((HI) (INT) (((((((UINT) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
2510
2511
        fields->f_dsp_48_s16 = value;
2511
2512
      }
2512
2513
      break;
2518
2519
        {
2519
2520
        long value;
2520
2521
        length = extract_normal (cd, ex_info, insn_value, 0, 32, 16, 16, 32, total_length, pc, & value);
2521
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
2522
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
2522
2523
        fields->f_dsp_48_u16 = value;
2523
2524
      }
2524
2525
        if (length <= 0) break;
2525
2526
        {
2526
2527
        long value;
2527
2528
        length = extract_normal (cd, ex_info, insn_value, 0, 64, 0, 16, 32, total_length, pc, & value);
2528
 
        value = ((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
 
2529
        value = ((((((UHI) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280))));
2529
2530
        fields->f_dsp_64_u16 = value;
2530
2531
      }
2531
2532
        if (length <= 0) break;
2552
2553
      {
2553
2554
        long value;
2554
2555
        length = extract_normal (cd, ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGNED), 64, 0, 16, 32, total_length, pc, & value);
2555
 
        value = EXTHISI (((HI) (INT) (((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
 
2556
        value = EXTHISI (((HI) (INT) (((((((UINT) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
2556
2557
        fields->f_dsp_64_s16 = value;
2557
2558
      }
2558
2559
      break;
2560
2561
      {
2561
2562
        long value;
2562
2563
        length = extract_normal (cd, ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGNED), 0, 8, 16, 32, total_length, pc, & value);
2563
 
        value = EXTHISI (((HI) (INT) (((((((unsigned int) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
 
2564
        value = EXTHISI (((HI) (INT) (((((((UINT) (value) >> (8))) & (255))) | (((((value) << (8))) & (65280)))))));
2564
2565
        fields->f_dsp_8_s16 = value;
2565
2566
      }
2566
2567
      break;
2645
2646
      {
2646
2647
        long value;
2647
2648
        length = extract_normal (cd, ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGN_OPT)|(1<<CGEN_IFLD_PCREL_ADDR), 0, 8, 16, 32, total_length, pc, & value);
2648
 
        value = ((((((unsigned int) (((value) & (65535))) >> (8))) | (((int) (((((value) & (255))) << (24))) >> (16))))) + (((pc) + (1))));
 
2649
        value = ((((((USI) (((value) & (65535))) >> (8))) | (((SI) (((((value) & (255))) << (24))) >> (16))))) + (((pc) + (1))));
2649
2650
        fields->f_lab_8_16 = value;
2650
2651
      }
2651
2652
      break;
2653
2654
      {
2654
2655
        long value;
2655
2656
        length = extract_normal (cd, ex_info, insn_value, 0|(1<<CGEN_IFLD_ABS_ADDR), 0, 8, 24, 32, total_length, pc, & value);
2656
 
        value = ((((((unsigned int) (value) >> (16))) | (((value) & (65280))))) | (((((value) & (255))) << (16))));
 
2657
        value = ((((((USI) (value) >> (16))) | (((value) & (65280))))) | (((((value) & (255))) << (16))));
2657
2658
        fields->f_lab_8_24 = value;
2658
2659
      }
2659
2660
      break;
2758
2759
      {
2759
2760
        long value;
2760
2761
        length = extract_normal (cd, ex_info, insn_value, 0, 0, 18, 2, 32, total_length, pc, & value);
2761
 
        value = (((((~ (((unsigned int) (value) >> (1))))) & (1))) | (((((value) << (1))) & (2))));
 
2762
        value = (((((~ (((USI) (value) >> (1))))) & (1))) | (((((value) << (1))) & (2))));
2762
2763
        fields->f_src32_rn_prefixed_QI = value;
2763
2764
      }
2764
2765
      break;
2782
2783
      {
2783
2784
        long value;
2784
2785
        length = extract_normal (cd, ex_info, insn_value, 0, 0, 10, 2, 32, total_length, pc, & value);
2785
 
        value = (((((~ (((unsigned int) (value) >> (1))))) & (1))) | (((((value) << (1))) & (2))));
 
2786
        value = (((((~ (((USI) (value) >> (1))))) & (1))) | (((((value) << (1))) & (2))));
2786
2787
        fields->f_src32_rn_unprefixed_QI = value;
2787
2788
      }
2788
2789
      break;