mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
1638ca5493
The ARM assembler allows register alias redefinitions as long as it targets the same register. r222319 broke that. In the AArch64 case it would just produce a new warning, but in the ARM case it would error out on previously accepted assembler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228109 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
433 B
ArmAsm
15 lines
433 B
ArmAsm
@ RUN: llvm-mc -triple=armv7-apple-darwin -show-encoding < %s | FileCheck %s
|
|
.syntax unified
|
|
bar:
|
|
@ The line is duplicated on purpose, it is legal to redefine a req with
|
|
@ the same value.
|
|
fred .req r5
|
|
fred .req r5
|
|
mov r11, fred
|
|
.unreq fred
|
|
fred .req r6
|
|
mov r1, fred
|
|
|
|
@ CHECK: mov r11, r5 @ encoding: [0x05,0xb0,0xa0,0xe1]
|
|
@ CHECK: mov r1, r6 @ encoding: [0x06,0x10,0xa0,0xe1]
|