rust/src/test/codegen/intrinsics
Simonas Kazlauskas 2f000a78bf Manually set dso_local when its valid to do so
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]: 3001d080c8/clang/lib/CodeGen/CodeGenModule.cpp (L945-L1039)
2021-04-03 00:00:29 +03:00
..
exact_div.rs improve test indentation 2019-06-04 22:13:41 +02:00
likely.rs move intrinsics codegen tests into a seperate folder 2019-06-04 22:08:28 +02:00
nearby.rs Added tests for volatile and nearbyint intrinsics 2020-07-12 22:38:37 -04:00
nontemporal.rs Manually set dso_local when its valid to do so 2021-04-03 00:00:29 +03:00
prefetch.rs Account for pointer type suffix in prefetch test 2020-01-07 21:28:22 +01:00
unchecked_math.rs move intrinsics codegen tests into a seperate folder 2019-06-04 22:08:28 +02:00
volatile.rs Added tests for volatile and nearbyint intrinsics 2020-07-12 22:38:37 -04:00
volatile_order.rs Added ui tests for volatile and nearby intrinsics 2020-07-13 00:47:09 -04:00