aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/X86
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2012-01-23 22:35:25 +0000
committerDevang Patel <dpatel@apple.com>2012-01-23 22:35:25 +0000
commitf2d213745e07e884c1616f2f3d0b78f9e918e5db (patch)
treebb8e3d680935efc5c086ea31d2a82e5809e91375 /test/MC/X86
parentc1bddefc56cd1db30326d6464f50db3dae6061eb (diff)
downloadexternal_llvm-f2d213745e07e884c1616f2f3d0b78f9e918e5db.zip
external_llvm-f2d213745e07e884c1616f2f3d0b78f9e918e5db.tar.gz
external_llvm-f2d213745e07e884c1616f2f3d0b78f9e918e5db.tar.bz2
Intel syntax: Robustify parsing of memory operand's displacement experssion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148737 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/X86')
-rw-r--r--test/MC/X86/intel-syntax.s6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/MC/X86/intel-syntax.s b/test/MC/X86/intel-syntax.s
index a069070..2c69280 100644
--- a/test/MC/X86/intel-syntax.s
+++ b/test/MC/X86/intel-syntax.s
@@ -56,7 +56,9 @@ _main:
// CHECK: fld %st(0)
fld ST(0)
// CHECK: movl %fs:(%rdi), %eax
-mov EAX, DWORD PTR FS:[RDI]
+ mov EAX, DWORD PTR FS:[RDI]
// CHECK: leal (,%rdi,4), %r8d
-lea R8D, DWORD PTR [4*RDI]
+ lea R8D, DWORD PTR [4*RDI]
+// CHECK: movl _fnan(,%ecx,4), %ecx
+ mov ECX, DWORD PTR [4*ECX + _fnan]
ret