set SHORT_TYPE_SIZE to 8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

correct me if I am wrong, I am doing a port for a new cup arch and I have
set the short type to 8-bit, however as shown below gcc still treat it as
16-bit (HI) ...

I set short type to 8-bit by:
#define SHORT_TYPE_SIZE 8


below is the expender:

main ()
{
  volatile long unsigned intD.5 hhD.1332;
  volatile short unsigned intD.9 ddD.1331;
  *short unsigned intD.9 dd.0_3*;
  long unsigned intD.5 hh.1_4;

;;   basic block 2, loop depth 0
;;    pred:       ENTRY
  # .MEM_2 = VDEF <.MEM_1(D)>
  ddD.1331 ={v} 12;
  # VUSE <.MEM_2>
  *dd.0_3 ={v} ddD.1331;*
  # RANGE [0, 255] NONZERO 0x0000000ff
  hh.1_4 = (long unsigned intD.5) dd.0_3;
  # .MEM_5 = VDEF <.MEM_2>
  hhD.1332 ={v} hh.1_4;
  # VUSE <.MEM_5>
  return 0;
;;    succ:       EXIT

}


Partition 1: size 2 align 1
	hhD.1332
Partition 0: size 1 align 1
	ddD.1331

;; Generating RTL for gimple basic block 2

;; dd ={v} 12;

(insn 6 5 0 (set (mem/v/c:QI (plus:HI (reg/f:HI 18 virtual-stack-vars)
                (const_int -3 [0xfffffffd])) [3 ddD.1331+0 S1 A8])
        (const_int 12 [0xc])) Testing2.c:41 -1
     (nil))

;; _3 ={v} dd;

(insn 7 6 0 *(set (reg:HI 23 [ D.1342 ])*
        (zero_extend:HI (mem/v/c:QI (plus:HI (reg/f:HI 18
virtual-stack-vars)
                    (const_int -3 [0xfffffffd])) [3 ddD.1331



--
View this message in context: http://gcc.1065356.n5.nabble.com/set-SHORT-TYPE-SIZE-to-8-tp1208654.html
Sent from the gcc - Help mailing list archive at Nabble.com.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux