GCC Bugzilla – Attachment 7898 Details for
Bug 19329
[3.4 Regression] Bitfield operations cause shifts with 0-count to slip through backends
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Testcase to reproduce the bug
avr_bitfields_bug.i (text/plain), 1.14 KB, created by
Giovanni Bajo
on 2005-01-08 17:47:36 UTC
(
hide
)
Description:
Testcase to reproduce the bug
Filename:
MIME Type:
Creator:
Giovanni Bajo
Created:
2005-01-08 17:47:36 UTC
Size:
1.14 KB
patch
obsolete
>struct SysParams >{ > unsigned short tag; > unsigned short version; > unsigned int seqnum; > int contrast; > int igain_1, igain_2; > int oattn_1, oattn_2; > int max_out_vltg_1, max_out_vltg_2; > int max_mains_current; > int meters_mode; > int input_select; > unsigned char input_parallelch2:1; > unsigned char cliplmt_ch1:1; > unsigned char cliplmt_ch2:1; > unsigned char gate_ch1:1; > unsigned char gate_ch2:1; > unsigned char mute_ch1:1; > unsigned char mute_ch2:1; > unsigned char brownout:1; > unsigned char power_on:1; > unsigned char pwrup_mute:1; > unsigned char keylock:1; > unsigned char dsp_ch1:1; > unsigned char dsp_ch2:1; > int dsp_preset; > long unlock_code; >}; >extern struct SysParams params; > >void foo(void *); >void kcmd_setParams(void) >{ > struct { > unsigned char igain_1; > unsigned char igain_2; > unsigned char max_out_vltg_1; > unsigned char max_out_vltg_2; > unsigned char max_imains; > unsigned char cliplmt_ch1:1; > unsigned char cliplmt_ch2:1; > unsigned char gate_ch1:1; > unsigned char gate_ch2:1; > } msg; > foo(&msg); > params.cliplmt_ch1 = msg.cliplmt_ch1; > params.cliplmt_ch2 = msg.cliplmt_ch2; > params.gate_ch1 = msg.gate_ch1; > params.gate_ch2 = msg.gate_ch2; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 19329
: 7898 |
7899
|
7905