TargetGlobalTLSAddress is not considered and handled correctly when matching addressing mode, which leads to an incorrect result of instruction selection.
fixes #63162.
| Paths 
 |  Differential  D153103  
[m68k] Fix incorrect handling of TLS when matching addressing mode. ClosedPublic Authored by 0x59616e on Jun 15 2023, 11:28 PM. 
Details Summary TargetGlobalTLSAddress is not considered and handled correctly when matching addressing mode, which leads to an incorrect result of instruction selection. fixes #63162. 
Diff Detail Event Timeline
 Comment Actions Overall looks good. Though please address the inline comments. 
 This revision is now accepted and ready to land.Jun 22 2023, 9:31 AM Closed by commit rG65b710efc19d: [m68k] Fix incorrect handling of TLS when matching addressing mode. (authored by 0x59616e).  ·  Explain WhyJun 22 2023, 5:31 PM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
Diff 531995 llvm/lib/Target/M68k/M68kISelDAGToDAG.cpp
 llvm/test/CodeGen/M68k/TLS/tlsgd.ll
 llvm/test/CodeGen/M68k/TLS/tlsie.ll
 llvm/test/CodeGen/M68k/TLS/tlsld.ll
 llvm/test/CodeGen/M68k/TLS/tlsle.ll
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
please add curly braces around this case