[X86] Fix X32 indirect call generation
authorHarald van Dijk <harald@gigawatt.nl>
Wed, 3 Nov 2021 16:43:44 +0000 (16:43 +0000)
committerHarald van Dijk <harald@gigawatt.nl>
Wed, 3 Nov 2021 16:43:44 +0000 (16:43 +0000)
commit889c2b97bd8c24fec231d239e85eeca7fcee3dd9
treeec5c08568084f07c00f910e526e0c1cba4b77602
parentc85df3c7d5ee91210d9d433b5a5b94ab1e5fd3be
[X86] Fix X32 indirect call generation

The check for whether a zero extension was needed was subtly wrong and
saw a value that was already 64 bits, so did not extend.

Fixes PR52357.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D112860
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/call-structfp.ll [new file with mode: 0644]