| OLD | NEW |
| 1 #!/usr/bin/perl | 1 #!/usr/bin/env perl |
| 2 ## | 2 ## |
| 3 ## Copyright (c) 2013 The WebM project authors. All Rights Reserved. | 3 ## Copyright (c) 2013 The WebM project authors. All Rights Reserved. |
| 4 ## | 4 ## |
| 5 ## Use of this source code is governed by a BSD-style license | 5 ## Use of this source code is governed by a BSD-style license |
| 6 ## that can be found in the LICENSE file in the root of the source | 6 ## that can be found in the LICENSE file in the root of the source |
| 7 ## tree. An additional intellectual property rights grant can be found | 7 ## tree. An additional intellectual property rights grant can be found |
| 8 ## in the file PATENTS. All contributing project authors may | 8 ## in the file PATENTS. All contributing project authors may |
| 9 ## be found in the AUTHORS file in the root of the source tree. | 9 ## be found in the AUTHORS file in the root of the source tree. |
| 10 ## | 10 ## |
| 11 | 11 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 # This assumes that r12 is free at this point. | 61 # This assumes that r12 is free at this point. |
| 62 s/^(\s*)addlt(\s+)pc,\s*pc,\s*(\w+),\s*lsl\s*#(\d+)/$1itttt$2lt\n$1movlt.n$2
r12, pc\n$1addlt.w$2r12, #12\n$1addlt.w$2r12, r12, $3, lsl #($4-$branch_shift_of
fset)\n$1movlt.n$2pc, r12/g; | 62 s/^(\s*)addlt(\s+)pc,\s*pc,\s*(\w+),\s*lsl\s*#(\d+)/$1itttt$2lt\n$1movlt.n$2
r12, pc\n$1addlt.w$2r12, #12\n$1addlt.w$2r12, r12, $3, lsl #($4-$branch_shift_of
fset)\n$1movlt.n$2pc, r12/g; |
| 63 | 63 |
| 64 # Convert "mov pc, lr" into "bx lr", since the former only works | 64 # Convert "mov pc, lr" into "bx lr", since the former only works |
| 65 # for switching from arm to thumb (and only in armv7), but not | 65 # for switching from arm to thumb (and only in armv7), but not |
| 66 # from thumb to arm. | 66 # from thumb to arm. |
| 67 s/mov(\s*)pc\s*,\s*lr/bx$1lr/g; | 67 s/mov(\s*)pc\s*,\s*lr/bx$1lr/g; |
| 68 } | 68 } |
| 69 | 69 |
| 70 1; | 70 1; |
| OLD | NEW |