diff options
author | Frederic Riss <friss@apple.com> | 2015-02-04 03:10:03 +0000 |
---|---|---|
committer | Frederic Riss <friss@apple.com> | 2015-02-04 03:10:03 +0000 |
commit | 1638ca5493df1eb1e291e19766a5f1aac90f606c (patch) | |
tree | 4d08373c7a5b4b5dfa61c956a5f21b16760653a0 /test | |
parent | 8fa9947e4d396c96b659550f0120b8c7ac4a879f (diff) |
Fix some unnoticed/unwanted behavior change from r222319.
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
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/AArch64/dot-req.s | 4 | ||||
-rw-r--r-- | test/MC/ARM/dot-req.s | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/test/MC/AArch64/dot-req.s b/test/MC/AArch64/dot-req.s index 947f945bded..a557f0c6758 100644 --- a/test/MC/AArch64/dot-req.s +++ b/test/MC/AArch64/dot-req.s @@ -1,7 +1,9 @@ -// RUN: llvm-mc -triple=aarch64-none-linux-gnu -show-encoding < %s | FileCheck %s +// RUN: llvm-mc -triple=aarch64-none-linux-gnu -show-encoding < %s 2>&1 | FileCheck %s bar: fred .req x5 +// CHECK-NOT: ignoring redefinition of register alias 'fred' + fred .req x5 mov fred, x11 .unreq fred fred .req w6 diff --git a/test/MC/ARM/dot-req.s b/test/MC/ARM/dot-req.s index 3b4cf5c80c0..848c1241aff 100644 --- a/test/MC/ARM/dot-req.s +++ b/test/MC/ARM/dot-req.s @@ -1,6 +1,9 @@ @ 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 |