Re: How to generate jump_table_data in rtl optimizers

2015-11-09 Thread Jeff Law
On 11/08/2015 11:20 PM, Bin.Cheng wrote: Hi, I used below code snippet to generate jump_table_data: //setup label refs start_sequence (); emit_jump_table_data(gen_rtx_ ADDR_DIFF_VEC (CASE_VECTOR_MODE, base_label_ref, label_refs...)) insns = get_insns (); end_sequence

Re: How to generate jump_table_data in rtl optimizers

2015-11-08 Thread Bin.Cheng
On Mon, Nov 9, 2015 at 2:20 PM, Bin.Cheng wrote: > Hi, > I used below code snippet to generate jump_table_data: > > //setup label refs > start_sequence (); > emit_jump_table_data(gen_rtx_ > ADDR_DIFF_VEC (CASE_VECTOR_MODE, > > base_label_ref, > > label_refs...)) > insns = g

How to generate jump_table_data in rtl optimizers

2015-11-08 Thread Bin.Cheng
Hi, I used below code snippet to generate jump_table_data: //setup label refs start_sequence (); emit_jump_table_data(gen_rtx_ ADDR_DIFF_VEC (CASE_VECTOR_MODE, base_label_ref, label_refs...)) insns = get_insns (); end_sequence (); split_edge_and_insert (edge, insns); But