aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2019-02-04 17:28:18 +0000
committerCraig Topper <craig.topper@intel.com>2019-02-04 17:28:18 +0000
commitbf7593ec4a1ed4d1605796f862f65a7b7fcb4b3e (patch)
treede4df68961811fa22c47dd2a49f4cb1d6771fc91 /llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
parentd00c02c0f9d42c6fc6dd4b53d6ffb79ff0aff811 (diff)
downloadllvm-bf7593ec4a1ed4d1605796f862f65a7b7fcb4b3e.zip
llvm-bf7593ec4a1ed4d1605796f862f65a7b7fcb4b3e.tar.gz
llvm-bf7593ec4a1ed4d1605796f862f65a7b7fcb4b3e.tar.bz2
[X86] Print all register forms of x87 fadd/fsub/fdiv/fmul as having two arguments where on is %st.
All of these instructions consume one encoded register and the other register is %st. They either write the result to %st or the encoded register. Previously we printed both arguments when the encoded register was written. And we printed one argument when the result was written to %st. For the stack popping forms the encoded register is always the destination and we didn't print both operands. This was inconsistent with gcc and objdump and just makes the output assembly code harder to read. This patch changes things to always print both operands making us consistent with gcc and objdump. The parser should still be able to handle the single register forms just as it did before. This also matches the GNU assembler behavior. llvm-svn: 353061
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp')
0 files changed, 0 insertions, 0 deletions