aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-14 19:10:46 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-14 19:10:46 +0000
commita5727db3d96009911bdf84a8438751ef17ca545c (patch)
tree1ec5c2d0e22e5287fc1233275bb406d0c6a7045d /test/MC
parentf1a7a480943a5e97aa67ddb612fd2eb94d8ad830 (diff)
downloadexternal_llvm-a5727db3d96009911bdf84a8438751ef17ca545c.zip
external_llvm-a5727db3d96009911bdf84a8438751ef17ca545c.tar.gz
external_llvm-a5727db3d96009911bdf84a8438751ef17ca545c.tar.bz2
llvm-mc: When handling a .set, make sure to print subsequent references to the
symbol as the symbol name itself, not the expression it was defined to. These have different semantics due to the quirky .set behavior (which absolutizes an expression that would otherwise be treated as a relocation). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79025 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r--test/MC/AsmParser/labels.s10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/MC/AsmParser/labels.s b/test/MC/AsmParser/labels.s
index c9cb44e..f306685 100644
--- a/test/MC/AsmParser/labels.s
+++ b/test/MC/AsmParser/labels.s
@@ -23,9 +23,9 @@ foo:
// CHECK: addl $10, %eax
addl "b$c", %eax
-
// CHECK: set "a 0", 11
-.set "a 0", 11
+ .set "a 0", 11
+
// CHECK: .long 11
.long "a 0"
@@ -49,3 +49,9 @@ foo:
// CHECK: .lsym "a 8",1
.lsym "a 8", 1
+
+// CHECK: set "a 9", a - b
+ .set "a 9", a - b
+
+// CHECK: .long "a 9"
+ .long "a 9"