;; The dummy instruction has been supported to ensure that no empty ;; arrays are generated in source files of the generated compiler in the ;; initial levels.. (define_insn "dummy_pattern" [(reg:SI 0)] "1" "This stmnt should not be emitted!" ) ;; Functions in genemit.c read .md file for desired target and generates ;; gen_ function for each standard named pattern defined in ;; .md file. The function gen_ is in turn used to generate ;; RTLs at the time of transforming input program into RTL. The source ;; files cfgrtl.c, cse.c,expmed.c which contribute in cc1, use the ;; function gen_jump to generate insn corresponding to jump instruction. ;; If this pattern is not defined in machine description, the compiler, ;; fails in the linking phase because gen_jump is not defined. ;; For compiling _any_ program, jumps are a must. (define_insn "jump" [(set (pc) (label_ref (match_operand 0 "" "")))] "" { return "j \\t%l0"; } ) (define_insn "indirect_jump" [(set (pc) (match_operand:SI 0 "register_operand" ""))] "" "jr \\t%0" ) (define_expand "epilogue" [(clobber (const_int 0))] "" { spim_epilogue(); DONE; } ) (define_insn "IITB_return" [(return)] "" "jr \\t\\$ra" )