mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-05 02:49:18 +00:00
add 8 and 16 bit TLS moves.
add a fixme note on how to remove code duplication. llvm-svn: 66932
This commit is contained in:
parent
a4bb3e6d14
commit
aadb9af093
@ -2920,6 +2920,10 @@ def MOV32_mr : I<0x89, MRMDestMem, (outs), (ins i32mem:$dst, GR32_:$src),
|
||||
// Thread Local Storage Instructions
|
||||
//
|
||||
|
||||
// FIXME: there is duplication with the non-TLS case.
|
||||
// There is a suggestion on how to fix this at
|
||||
// http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090309/075212.html
|
||||
|
||||
let Uses = [EBX] in
|
||||
def TLS_addr32 : I<0, Pseudo, (outs GR32:$dst), (ins i32imm:$sym),
|
||||
"leal\t${sym:mem}(,%ebx,1), $dst",
|
||||
@ -2937,6 +2941,22 @@ def TLS_gs_ri : I<0x8B, Pseudo, (outs GR32:$dst), (ins i32imm:$src),
|
||||
(load (add X86TLStp, (X86Wrapper tglobaltlsaddr:$src))))]>,
|
||||
SegGS;
|
||||
|
||||
let AddedComplexity = 15 in
|
||||
def TLS16_gs_ri : I<0x8B, Pseudo, (outs GR16:$dst), (ins i32imm:$src),
|
||||
"movw\t%gs:${src:mem}, $dst",
|
||||
[(set GR16:$dst,
|
||||
(load (add X86TLStp,
|
||||
(X86Wrapper tglobaltlsaddr:$src))))]>,
|
||||
SegGS;
|
||||
|
||||
let AddedComplexity = 15 in
|
||||
def TLS8_gs_ri : I<0x8B, Pseudo, (outs GR8:$dst), (ins i32imm:$src),
|
||||
"movb\t%gs:${src:mem}, $dst",
|
||||
[(set GR8:$dst,
|
||||
(load (add X86TLStp,
|
||||
(X86Wrapper tglobaltlsaddr:$src))))]>,
|
||||
SegGS;
|
||||
|
||||
let AddedComplexity = 15 in
|
||||
def TLS_ext16_gs_ri : I<0x8B, Pseudo, (outs GR32:$dst), (ins i32imm:$src),
|
||||
"movzwl\t%gs:${src:mem}, $dst",
|
||||
|
Loading…
x
Reference in New Issue
Block a user