branch.isa (6259:71dd4e07e626) branch.isa (6724:70129fdded75)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2007-2008 The Florida State University
4// All rights reserved.
5//
6// Redistribution and use in source and binary forms, with or without
7// modification, are permitted provided that the following conditions are
8// met: redistributions of source code must retain the above copyright

--- 38 unchanged lines hidden (view full) ---

47 inst_flags += (x, )
48
49 #Take into account uncond. branch instruction
50 if 'cond == 1' in code:
51 inst_flags += ('IsUnCondControl', )
52 else:
53 inst_flags += ('IsCondControl', )
54
1// -*- mode:c++ -*-
2
3// Copyright (c) 2007-2008 The Florida State University
4// All rights reserved.
5//
6// Redistribution and use in source and binary forms, with or without
7// modification, are permitted provided that the following conditions are
8// met: redistributions of source code must retain the above copyright

--- 38 unchanged lines hidden (view full) ---

47 inst_flags += (x, )
48
49 #Take into account uncond. branch instruction
50 if 'cond == 1' in code:
51 inst_flags += ('IsUnCondControl', )
52 else:
53 inst_flags += ('IsCondControl', )
54
55 icode = 'if (testPredicate(Cpsr, condCode)) {\n'
55 icode = 'if (testPredicate(CondCodes, condCode)) {\n'
56 icode += code
57 icode += ' NPC = NPC + 4 + disp;\n'
58 icode += '} else {\n'
59 icode += ' NPC = NPC;\n'
60 if linking:
61 icode += ' LR = LR;\n'
62 icode += '};\n'
63

--- 21 unchanged lines hidden (view full) ---

85 #Take into account uncond. branch instruction
86 if 'cond == 1' in code:
87 inst_flags += ('IsUnCondControl', )
88 else:
89 inst_flags += ('IsCondControl', )
90
91 #Condition code
92
56 icode += code
57 icode += ' NPC = NPC + 4 + disp;\n'
58 icode += '} else {\n'
59 icode += ' NPC = NPC;\n'
60 if linking:
61 icode += ' LR = LR;\n'
62 icode += '};\n'
63

--- 21 unchanged lines hidden (view full) ---

85 #Take into account uncond. branch instruction
86 if 'cond == 1' in code:
87 inst_flags += ('IsUnCondControl', )
88 else:
89 inst_flags += ('IsCondControl', )
90
91 #Condition code
92
93 icode = 'if (testPredicate(Cpsr, condCode)) {\n'
93 icode = 'if (testPredicate(CondCodes, condCode)) {\n'
94 icode += code
95 icode += ' NPC = Rm & 0xfffffffe; // Masks off bottom bit\n'
96 icode += '} else {\n'
97 icode += ' NPC = NPC;\n'
98 if linking:
99 icode += ' LR = LR;\n'
100 icode += '};\n'
101

--- 30 unchanged lines hidden ---
94 icode += code
95 icode += ' NPC = Rm & 0xfffffffe; // Masks off bottom bit\n'
96 icode += '} else {\n'
97 icode += ' NPC = NPC;\n'
98 if linking:
99 icode += ' LR = LR;\n'
100 icode += '};\n'
101

--- 30 unchanged lines hidden ---