about summary refs log tree commit diff
path: root/src/test/assembly/static-relocation-model.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-86/+0
2022-07-20adapt assembly/static-relocation-model test for LLVM changeKrasimir Georgiev-3/+4
After https://github.com/llvm/llvm-project/commit/f0dd12ec5c0169ba5b4363b62d59511181cf954a, LLVM emits `movzbl` instead. Adapted this test case accordingly. Discovered in our experimental rust + llvm at head ci: https://buildkite.com/llvm-project/rust-llvm-integrate-prototype/builds/12104#0182195b-8791-4f88-853c-bb23a1e4b54c
2021-10-22Update the minimum external LLVM to 12Josh Stone-1/+0
2021-06-24Re-Annotate the tests with needs-llvm-componentsSimonas Kazlauskas-1/+3
Doesn't work though, because compiletest doesn't process ignores on a per-revision manner.
2021-05-28Fix static relocation model for PowerPC64Boris-Chengbiao Zhou-2/+9
We now also use `should_assume_dso_local()` for declarations and port two additional cases from clang: - Exclude PPC64 [1] - Exclude thread-local variables [2] [1]: https://github.com/llvm/llvm-project/blob/033138ea452f5f493fb5095e5963419905ad12e1/clang/lib/CodeGen/CodeGenModule.cpp#L1038-L1040 [2]: https://github.com/llvm/llvm-project/blob/033138ea452f5f493fb5095e5963419905ad12e1/clang/lib/CodeGen/CodeGenModule.cpp#L1048-L1050
2021-05-18Set dso_local for more itemsBoris-Chengbiao Zhou-0/+33
2021-05-18Fix assembly test from #83592Boris-Chengbiao Zhou-4/+4
The test case wasn't actually checked for x64 due to a small difference in the name.
2021-04-03Manually set dso_local when its valid to do soSimonas Kazlauskas-0/+44
This should have no real effect in most cases, as e.g. `hidden` visibility already implies `dso_local` (or at least LLVM IR does not preserve the `dso_local` setting if the item is already `hidden`), but it should fix `-Crelocation-model=static` and improve codegen in executables. Note that this PR does not exhaustively port the logic in [clang]. Only the obviously correct portion and what is necessary to fix a regression from LLVM 12 that relates to `-Crelocation_model=static`. Fixes #83335 [clang]: https://github.com/llvm/llvm-project/blob/3001d080c813da20b329303bf8f45451480e5905/clang/lib/CodeGen/CodeGenModule.cpp#L945-L1039