]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commit
Fix suffix handling for parsing and printing of cvtsi2ss, cvtsi2sd, cvtss2si, cvttss2...
authorCraig Topper <craig.topper@gmail.com>
Sun, 6 Jan 2013 20:39:29 +0000 (20:39 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 6 Jan 2013 20:39:29 +0000 (20:39 +0000)
commitf564a9389da68266f44314fe38ab399fd2211134
treea45d4cbded5f756f85763884ebf09a8bf11449b7
parent700843ec2c4cb4aa442377809c6ebb3ae3030c61
Fix suffix handling for parsing and printing of cvtsi2ss, cvtsi2sd, cvtss2si, cvttss2si, cvtsd2si, and cvttsd2si to match gas behavior.

cvtsi2* should parse with an 'l' or 'q' suffix or no suffix at all. No suffix should be treated the same as 'l' suffix. Printing should always print a suffix. Previously we didn't parse or print an 'l' suffix.
cvtt*2si/cvt*2si should parse with an 'l' or 'q' suffix or not suffix at all. No suffix should use the destination register size to choose encoding. Printing should not print a suffix.

Original 'l' suffix issue with cvtsi2* pointed out by Michael Kuperstein.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171668 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrSSE.td
test/CodeGen/X86/avx-cvt.ll
test/CodeGen/X86/sse-domains.ll
test/CodeGen/X86/x86-64-dead-stack-adjust.ll
test/MC/Disassembler/X86/simple-tests.txt
test/MC/Disassembler/X86/x86-32.txt
test/MC/X86/x86-32-avx.s
test/MC/X86/x86-32-coverage.s
test/MC/X86/x86-64.s
test/MC/X86/x86_64-avx-encoding.s