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.
|  Differential  D112860  
[X86] Fix X32 indirect call generation Authored by hvdijk on Oct 29 2021, 5:46 PM. 
Details 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. 
Diff Detail 
 Event TimelineComment Actions Hm, I should have taken tail call out of the description and test name, this is not limited to tail calls. Then, removing -tailcallopt from the test, it does happen to use a tail call, but that's not the point of the test. 
 
 
 
 
 
 | ||||||||||||||||||||||||||||||||||||
Consider moving this into x32-function_pointer-*.ll