Jim Grosbach | ab5830e | 2011-12-14 02:16:11 +0000 | [diff] [blame] | 1 | @ RUN: llvm-mc -triple=armv7-apple-darwin -show-encoding < %s | FileCheck %s |
| 2 | .syntax unified |
| 3 | bar: |
Frederic Riss | b61f01f | 2015-02-04 03:10:03 +0000 | [diff] [blame] | 4 | @ The line is duplicated on purpose, it is legal to redefine a req with |
| 5 | @ the same value. |
| 6 | fred .req r5 |
Jim Grosbach | ab5830e | 2011-12-14 02:16:11 +0000 | [diff] [blame] | 7 | fred .req r5 |
| 8 | mov r11, fred |
| 9 | .unreq fred |
| 10 | fred .req r6 |
| 11 | mov r1, fred |
| 12 | |
| 13 | @ CHECK: mov r11, r5 @ encoding: [0x05,0xb0,0xa0,0xe1] |
| 14 | @ CHECK: mov r1, r6 @ encoding: [0x06,0x10,0xa0,0xe1] |