summaryrefslogtreecommitdiff
path: root/test/MC/X86
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-03-13 18:09:26 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-03-13 18:09:26 +0000
commit7e9df19d5f935c52ed4f550997f944930874146d (patch)
tree4ab114134209b45f53116b8c760bae6e4f2ba591 /test/MC/X86
parent1fa9a14308df8bb7c5abba7d814b79116341aefa (diff)
downloadllvm-7e9df19d5f935c52ed4f550997f944930874146d.tar.gz
llvm-7e9df19d5f935c52ed4f550997f944930874146d.tar.bz2
llvm-7e9df19d5f935c52ed4f550997f944930874146d.tar.xz
Use printable names to implement directional labels.
This changes the implementation of local directional labels to use a dedicated map. With that it can then just use CreateTempSymbol, which is what the rest of MC uses. CreateTempSymbol doesn't do a great job at making sure the names are unique (or being efficient when the names are not needed), but that should probably be fixed in a followup patch. This fixes pr18928. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203826 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/X86')
-rw-r--r--test/MC/X86/intel-syntax-directional-label.s5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/MC/X86/intel-syntax-directional-label.s b/test/MC/X86/intel-syntax-directional-label.s
index 1ed16733bb..c1aa90f192 100644
--- a/test/MC/X86/intel-syntax-directional-label.s
+++ b/test/MC/X86/intel-syntax-directional-label.s
@@ -8,9 +8,10 @@ FUNCTION_NAME:
.intel_syntax
cmp rdi, 1
jge 1f
-// CHECK: jge "L11"
+// CHECK: jge Ltmp0
add rdi, 2
+// CHECK: addq $2, %rdi
1:
-// CHECK: "L11":
+// CHECK: Ltmp0:
add rdi, 1
ret