OSDN Git Service

[X86] When using Win64 ABI, exit with error if SSE is disabled for varargs
authorAmara Emerson <aemerson@apple.com>
Fri, 29 Mar 2019 21:30:51 +0000 (21:30 +0000)
committerAmara Emerson <aemerson@apple.com>
Fri, 29 Mar 2019 21:30:51 +0000 (21:30 +0000)
commitb54364c18e8e720981f4f6a9592ba386f75dd927
tree5fd82bbb597398a33c9810bd6c1272dd0c5fd891
parentfa9876ca9d5fe34681919ae38b94b2d3e7d9e42c
[X86] When using Win64 ABI, exit with error if SSE is disabled for varargs

We need XMM registers to handle varargs with the Win64 ABI. Before we would
silently generate bad code resulting in an assertion failure elsewhere in the
backend.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357317 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/win64-nosse-error.ll [new file with mode: 0644]