Commit e6e3d7a3 authored by Matthias Braun's avatar Matthias Braun
Browse files

sparc: read mode_gp from regclass instead of hardcoding mode_Iu

parent 5e3f2a70
...@@ -2490,11 +2490,12 @@ void sparc_transform_graph(ir_graph *irg) ...@@ -2490,11 +2490,12 @@ void sparc_transform_graph(ir_graph *irg)
node_to_stack = pmap_create(); node_to_stack = pmap_create();
mode_gp = mode_Iu; mode_gp = sparc_reg_classes[CLASS_sparc_gp].mode;
mode_fp = mode_F; mode_fp = sparc_reg_classes[CLASS_sparc_fp].mode;
mode_fp2 = mode_D; mode_fp2 = mode_D;
mode_flags = mode_Bu;
//mode_fp4 = ? //mode_fp4 = ?
mode_flags = sparc_reg_classes[CLASS_sparc_flags_class].mode;
assert(sparc_reg_classes[CLASS_sparc_fpflags_class].mode == mode_flags);
start_mem = NULL; start_mem = NULL;
start_g0 = NULL; start_g0 = NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment