1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-mirror/test/MC/X86
Chris Lattner 1beb2b3fc5 correct suffix matching to search for s/l/t suffixes on
floating point stack instructions instead of looking for b/w/l/q.

This fixes issues where we'd accidentally match fistp to fistpl,
when it is in fact an ambiguous instruction.

This changes the behavior of llvm-mc to reject fstp, which was the
correct fix for rdar://8456389:
t.s:1:1: error: ambiguous instructions require an explicit suffix (could be 'fstps', 'fstpl', or 'fstpt')
fstp	(%rax)

it also causes us to correctly reject fistp and fist, which addresses
PR8528:

t.s:2:1: error: ambiguous instructions require an explicit suffix (could be 'fistps', or 'fistpl')
fistp (%rax)
^
t.s:3:1: error: ambiguous instructions require an explicit suffix (could be 'fists', or 'fistl')
fist (%rax)
^

Thanks to Ismail Donmez for tracking down the issue here!

llvm-svn: 118346
2010-11-06 18:28:02 +00:00
..
3DNow.s Add 3DNowA instructions. 2010-10-03 20:23:13 +00:00
dg.exp
x86_64-avx-clmul-encoding.s
x86_64-avx-encoding.s
x86_64-encoding.s
x86_64-fma3-encoding.s
x86_64-imm-widths.s Replace a gross hack (the MOV64ri_alt instruction) with a slightly less 2010-10-05 21:09:45 +00:00
x86_directives.s
x86_errors.s
x86_operands.s
x86-32-avx.s
x86-32-coverage.s make the asm matcher emitter reject instructions that have comments 2010-11-01 04:44:29 +00:00
x86-32-fma3.s
x86-32.s fix an encoding mismatch where "sal %eax, 1" was not using the short encoding 2010-10-30 18:13:10 +00:00
x86-64.s correct suffix matching to search for s/l/t suffixes on 2010-11-06 18:28:02 +00:00