示例#1
0
    def print_if_cond(self, cond, fused_inst):
        if fused_inst is None:
            print_no_end(cond_symbol(cond))
            if cond in COND_ADD_ZERO:
                print_no_end(" 0")
            return

        assignment = fused_inst.id in ASSIGNMENT_OPS

        if assignment:
            print_no_end("(")
        print_no_end("(")
        self.print_operand(fused_inst, 0)
        print_no_end(" ")

        print_no_end(cond_symbol(cond))
        print_no_end(" ")
        self.print_operand(fused_inst, 1)

        # if (fused_inst.id != ARM_INS_CMP and \
                # (cond in COND_ADD_ZERO or assignment)):
            # print_no_end(" 0")

        print_no_end(")")
示例#2
0
    def print_if_cond(self, cond, fused_inst):
        if fused_inst is None:
            print_no_end(cond_symbol(cond))
            if cond in COND_ADD_ZERO:
                print_no_end(" 0")
            return

        assignment = fused_inst.id in ASSIGNMENT_OPS

        if assignment:
            print_no_end("(")
        print_no_end("(")
        self.print_operand(fused_inst, 0)
        print_no_end(" ")

        print_no_end(cond_symbol(cond))
        print_no_end(" ")
        self.print_operand(fused_inst, 1)

        # if (fused_inst.id != ARM_INS_CMP and \
        # (cond in COND_ADD_ZERO or assignment)):
        # print_no_end(" 0")

        print_no_end(")")