diff options
author | David Majnemer <david.majnemer@gmail.com> | 2014-06-19 01:25:43 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2014-06-19 01:25:43 +0000 |
commit | f9ec8fe70c5084a15372cc0b126218f699794e24 (patch) | |
tree | 3ab65f3643ba87a0cee288e7105f2d1c8952a781 /test | |
parent | d9b35435b89015d154b0e20f4d4796d936237f84 (diff) | |
download | llvm-f9ec8fe70c5084a15372cc0b126218f699794e24.tar.gz llvm-f9ec8fe70c5084a15372cc0b126218f699794e24.tar.bz2 llvm-f9ec8fe70c5084a15372cc0b126218f699794e24.tar.xz |
MS asm: Properly handle quoted symbol names
We would get confused by '@' characters in symbol names, we would
mistake the text following them for the variant kind.
When an identifier a string, the variant kind will never show up inside
of it. Instead, check to see if there is a variant following the
string.
This fixes PR19965.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211249 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/X86/intel-syntax.s | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/MC/X86/intel-syntax.s b/test/MC/X86/intel-syntax.s index 540282a74c..796891880b 100644 --- a/test/MC/X86/intel-syntax.s +++ b/test/MC/X86/intel-syntax.s @@ -599,3 +599,11 @@ fxrstor64 opaque ptr [rax] // CHECK: movq _g0+8, %rcx mov rbx, qword ptr [_g0] mov rcx, qword ptr [_g0 + 8] + +"?half@?0??bar@@YAXXZ@4NA": + .quad 4602678819172646912 + +fadd "?half@?0??bar@@YAXXZ@4NA" +fadd "?half@?0??bar@@YAXXZ@4NA"@IMGREL +// CHECK: fadds "?half@?0??bar@@YAXXZ@4NA" +// CHECK: fadds "?half@?0??bar@@YAXXZ@4NA"@IMGREL32 |