diff options
author | ZhaoQi <zhaoqi01@loongson.cn> | 2024-12-30 16:01:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-30 16:01:46 +0800 |
commit | b53866fec80d8676705409140b8ed2147ec44fad (patch) | |
tree | 1a179ba8ecdbcd016a6db1027cc569228f32afca /clang/unittests/Format/ConfigParseTest.cpp | |
parent | 49331ab0b9a41f925153fe03cd7e0d4a33b7c3d4 (diff) | |
download | llvm-b53866fec80d8676705409140b8ed2147ec44fad.zip llvm-b53866fec80d8676705409140b8ed2147ec44fad.tar.gz llvm-b53866fec80d8676705409140b8ed2147ec44fad.tar.bz2 |
[LoongArch] Modify expanding code sequence for PseudoLA_TLS_LE (#119696)
Before this commit, PseudoLA_TLS_LE for normal/medium code model expand
normally to:
```
lu12i.w $rd, %le_hi20(sym)
ori $rd, $rd, %le_lo12(sym)
```
This commit changes the result to:
```
lu12i.w $rd, %le_hi20_r(sym)
add.w/d $rd, $rd, $tp, %le_add_r(sym)
addi.w/d $rd, $rd, %le_lo12_r(sym)
```
This aims to be optimized by linker relaxation in the future.
This commit makes no change to PseudoLA_TLS_LE in large code model.
Diffstat (limited to 'clang/unittests/Format/ConfigParseTest.cpp')
0 files changed, 0 insertions, 0 deletions