| OLD | NEW |
| 1 @ Copyright 2009 The Native Client Authors. All rights reserved. | 1 @ Copyright 2009 The Native Client Authors. All rights reserved. |
| 2 @ Use of this source code is governed by a BSD-style license that can | 2 @ Use of this source code is governed by a BSD-style license that can |
| 3 @ be found in the LICENSE file. | 3 @ be found in the LICENSE file. |
| 4 @ Copyright 2009 Google Inc. | 4 @ Copyright 2009 Google Inc. |
| 5 | 5 |
| 6 @ | 6 @ |
| 7 @ Tests both legal and illegal variations on SP updates. | 7 @ Tests both legal and illegal variations on SP updates. |
| 8 @ | 8 @ |
| 9 | 9 |
| 10 #define MASK 0xF000000F | 10 #define MASK 0xF000000F |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 str r0, [sp], r1 @ Same SP update, | 57 str r0, [sp], r1 @ Same SP update, |
| 58 bic sp, sp, #0xC0000000 @ with mask, should pass. | 58 bic sp, sp, #0xC0000000 @ with mask, should pass. |
| 59 | 59 |
| 60 bundle7: | 60 bundle7: |
| 61 smlad sp, r0, r1, r2 @ Attempt to write SP using a MAC instruction, | 61 smlad sp, r0, r1, r2 @ Attempt to write SP using a MAC instruction, |
| 62 nop @ without a mask: ERROR. | 62 nop @ without a mask: ERROR. |
| 63 smlad sp, r0, r1, r2 @ Attempt to write SP using a MAC instruction, | 63 smlad sp, r0, r1, r2 @ Attempt to write SP using a MAC instruction, |
| 64 bic sp, sp, #0xC0000000 @ with a mask: ERROR - affects flags | 64 bic sp, sp, #0xC0000000 @ with a mask: ERROR - affects flags |
| 65 | 65 |
| 66 bundle8: | 66 bundle8: |
| 67 ldrd r0, [sp], r1 @ Post-index SP with a register on LDRD, | 67 ldrd r0, r1, [sp], r3 @ Post-index SP with a register on LDRD, |
| 68 nop @ without a mask: ERROR. | 68 nop @ without a mask: ERROR. |
| 69 ldrd r0, [sp], r1 @ Same case, | 69 ldrd r0, r1, [sp], r3 @ Same case, |
| 70 bic sp, sp, #0xC0000000 @ with a mask - should pass. | 70 bic sp, sp, #0xC0000000 @ with a mask - should pass. |
| OLD | NEW |