builtin-has-attribute-4.c: Skip on 32-bit hppa*-*-hpux*.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr50908.c
blob114dded3ab150e3927a393e28b7c40c587cd4902
1 /* { dg-do compile } */
2 /* { dg-require-effective-target lp64 } */
3 /* { dg-options "-O2 -ftree-tail-merge" } */
5 enum Lisp_Type
7 Lisp_Int0 = 0, Lisp_Int1 = 4, Lisp_Symbol = 2, Lisp_Misc = 3, Lisp_String =
8 1, Lisp_Vectorlike = 5, Lisp_Cons = 6, Lisp_Float = 7,
9 };
10 typedef long Lisp_Object;
11 enum pvec_type
13 PVEC_NORMAL_VECTOR = 0, PVEC_PROCESS = 0x200, PVEC_FRAME =
14 0x400, PVEC_COMPILED = 0x800, PVEC_WINDOW =
15 0x1000, PVEC_WINDOW_CONFIGURATION = 0x2000, PVEC_SUBR =
16 0x4000, PVEC_CHAR_TABLE = 0x8000, PVEC_BOOL_VECTOR =
17 0x10000, PVEC_BUFFER = 0x20000, PVEC_HASH_TABLE = 0x40000, PVEC_TERMINAL =
18 0x80000, PVEC_SUB_CHAR_TABLE = 0x100000, PVEC_FONT =
19 0x200000, PVEC_OTHER = 0x400000, PVEC_TYPE_MASK = 0x7ffe00
21 struct Lisp_Vector
23 unsigned long size;
25 struct Lisp_Char_Table
27 Lisp_Object defalt;
28 Lisp_Object ascii;
30 struct Lisp_Sub_Char_Table
32 Lisp_Object contents[1];
34 extern Lisp_Object Qnil, Qt, Qquote, Qlambda, Qsubr, Qunbound;
35 struct buffer_text
37 unsigned char *beg;
38 long gpt_byte;
39 long gap_size;
41 struct buffer
43 struct buffer_text *text;
44 struct region_cache *width_run_cache;
45 Lisp_Object tab_width;
46 Lisp_Object ctl_arrow;
48 extern struct buffer *current_buffer;
49 extern Lisp_Object Vchar_width_table;
50 struct frame
52 long text_lines, text_cols;
54 struct window
56 Lisp_Object frame;
58 extern Lisp_Object Vtruncate_partial_width_windows;
59 extern struct Lisp_Char_Table *window_display_table (struct window *);
60 long find_before_next_newline (long, long, long);
61 long disp_char_vector (struct Lisp_Char_Table *, int);
62 long char_table_ref (Lisp_Object, int);
63 struct position *
64 compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos,
65 width, hscroll, tab_offset, win)
66 int did_motion, width, hscroll, tab_offset;
67 long from, fromvpos, fromhpos, to, tovpos, tohpos;
68 struct window *win;
70 register long hpos = fromhpos;
71 register long pos;
72 long pos_byte;
73 register int c = 0;
74 register struct Lisp_Char_Table *dp = window_display_table (win);
75 long wide_column_end_hpos = 0;
76 long continuation_glyph_width;
77 while (1)
79 if (hpos > width)
81 int total_width = width + continuation_glyph_width;
82 if (!((Vtruncate_partial_width_windows) == (Qnil))
83 && (total_width <
84 (((void) 0,
85 (struct frame
86 *) ((long) (((win)->frame) & ~((((long) 1) << 3) -
87 1)))))->text_cols))
89 if (pos <= to)
91 pos = find_before_next_newline (pos, to, 1);
93 if (wide_column_end_hpos > width)
95 hpos -= width;
99 else
101 Lisp_Object charvec;
103 *(((((pos_byte)) >=
104 (current_buffer->text->gpt_byte) ? (current_buffer->text->
105 gap_size) : 0) +
106 ((pos_byte)) + (current_buffer->text->beg) - ((1))));
107 if (current_buffer->width_run_cache)
109 if (((((enum Lisp_Type) (((unsigned long) ((charvec))) &
110 ((((long) 1) << 3) - 1))) ==
111 Lisp_Vectorlike)
113 !(((void) 0,
114 (struct Lisp_Vector
115 *) ((long) ((charvec) & ~((((long) 1) << 3) - 1))))->
116 size & ((((unsigned long) 1 << (64 - 1)) >> 1)))))
118 unsigned char *ptr;
119 int bytes, width, wide_column;
122 if ((!((*ptr) & 0x80) ? 1 : !((*ptr) & 0x20) ? 2 :
123 !((*ptr) & 0x10) ? 3 : !((*ptr) & 0x08) ? 4 : 5) !=
124 bytes)
125 width = bytes * 4;
126 else
128 if (dp != 0
130 ((((enum
131 Lisp_Type) (((unsigned
132 long) (((((unsigned) (c) <
133 0x80)
134 ? ((((dp)->ascii) ==
135 (Qnil)) ? (dp)->
136 defalt
137 : (((((enum
138 Lisp_Type)
139 (((unsigned
140 long) (((dp)->ascii))) & ((((long) 1) << 3) - 1))) == Lisp_Vectorlike) && (((((void) 0, (struct Lisp_Vector *) ((long) (((dp)->ascii) & ~((((long) 1) << 3) - 1))))->size & (((((unsigned long) 1 << (64 - 1)) >> 1)) | (PVEC_SUB_CHAR_TABLE)))) == (((((unsigned long) 1 << (64 - 1)) >> 1)) | (PVEC_SUB_CHAR_TABLE)))) ? ((void) 0, (struct Lisp_Sub_Char_Table *) ((long) (((dp)->ascii) & ~((((long) 1) << 3) - 1))))->contents[c] : (dp)->ascii)) : disp_char_vector ((dp), (c)))))) & ((((long) 1) << 3) - 1))) == Lisp_Vectorlike) && !(((void) 0, (struct Lisp_Vector *) ((long) (((((unsigned) (c) < 0x80) ? ((((dp)->ascii) == (Qnil)) ? (dp)->defalt : (((((enum Lisp_Type) (((unsigned long) (((dp)->ascii))) & ((((long) 1) << 3) - 1))) == Lisp_Vectorlike) && (((((void) 0, (struct Lisp_Vector *) ((long) (((dp)->ascii) & ~((((long) 1) << 3) - 1))))->size & (((((unsigned long) 1 << (64 - 1)) >> 1)) | (PVEC_SUB_CHAR_TABLE)))) == (((((unsigned long) 1 << (64 - 1)) >> 1)) | (PVEC_SUB_CHAR_TABLE)))) ? ((void) 0, (struct Lisp_Sub_Char_Table *) ((long) (((dp)->ascii) & ~((((long) 1) << 3) - 1))))->contents[c] : (dp)->ascii)) : disp_char_vector ((dp), (c)))) & ~((((long) 1) << 3) - 1))))->size & ((((unsigned long) 1 << (64 - 1)) >> 1)))))
141 width =
142 ((void) 0,
143 (struct Lisp_Vector
144 *) ((long) (((((unsigned) (c) <
145 0x80) ? ((((dp)->ascii) ==
146 (Qnil)) ? (dp)->
147 defalt
148 : (((((enum
149 Lisp_Type) (((unsigned long) (((dp)->ascii))) & ((((long) 1) << 3) - 1))) == Lisp_Vectorlike) && (((((void) 0, (struct Lisp_Vector *) ((long) (((dp)->ascii) & ~((((long) 1) << 3) - 1))))->size & (((((unsigned long) 1 << (64 - 1)) >> 1)) | (PVEC_SUB_CHAR_TABLE)))) == (((((unsigned long) 1 << (64 - 1)) >> 1)) | (PVEC_SUB_CHAR_TABLE)))) ? ((void) 0, (struct Lisp_Sub_Char_Table *) ((long) (((dp)->ascii) & ~((((long) 1) << 3) - 1))))->contents[c] : (dp)->ascii)) : disp_char_vector ((dp), (c)))) & ~((((long) 1) << 3) - 1))))->size;
150 else
151 width =
152 (((unsigned) (c) < 0x80) ? (c <
153 0x20 ? (c ==
154 '\t'
155 ? ((((long)
156 (current_buffer->
157 tab_width))
158 >> (3 -
159 1)))
160 : (c ==
161 '\n' ? 0
162 : (((current_buffer->ctl_arrow) == (Qnil)) ? 4 : 2))) : (c < 0x7f ? 1 : ((((current_buffer->ctl_arrow) == (Qnil)) ? 4 : 2)))) : (((long) ((((unsigned) (c) < 0x80) ? (
164 Lisp_Object
165 _val;
166 _val;}
167 ): char_table_ref ((Vchar_width_table), (c))))) >> (3 - 1)));
168 if (width > 1)
169 wide_column = width;
172 while (0);
173 if (wide_column)
174 wide_column_end_hpos = hpos + wide_column;