about summary refs log tree commit diff
path: root/src/test/codegen/repr-transparent-aggregates-1.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-87/+0
2022-12-06Fix failing codegen tests on s390xUlrich Weigand-0/+1
Several codegen tests are currently failing due to making assumptions that are not valid for the s390x architecture: - catch-unwind.rs: fails due to inlining differences. Already ignored on another platform for the same reason. Solution: Ignore on s390x. - remap_path_prefix/main.rs: fails due to different alignment requirement for string constants. Solution: Do not test for the alignment requirement. - repr-transparent-aggregates-1.rs: many ABI assumptions. Already ignored on many platforms for the same reason. Solution: Ignore on s390x. - repr-transparent.rs: no vector ABI by default on s390x. Already ignored on another platform for a similar reason. Solution: Ignore on s390x. - uninit-consts.rs: hard-coded little-endian constant. Solution: Match both little- and big-endian versions. Fixes part of https://github.com/rust-lang/rust/issues/105383.
2022-05-25Update some codegen tests for opaque pointersNikita Popov-8/+8
2022-02-25make tests work on noopt builderErik Desjardins-1/+1
2021-10-22Update the minimum external LLVM to 12Josh Stone-1/+0
2021-04-06Auto merge of #83592 - nagisa:nagisa/dso_local, r=davidtwcobors-8/+8
Set dso_local for hidden, private and local items This should probably 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 portion that 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
2021-04-03Remove redundant `ignore-tidy-linelength` annotationsSimon Jakobi-1/+1
This is step 2 towards fixing #77548. In the codegen and codegen-units test suites, the `//` comment markers were kept in order not to affect any source locations. This is because these tests cannot be automatically `--bless`ed.
2021-04-03Manually set dso_local when its valid to do soSimonas Kazlauskas-8/+8
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
2021-02-28Support LLVM 12 in rustcNikita Popov-9/+9
2021-01-13Update code to account for extern ABI requirementMark Rousskov-8/+8
2020-07-01Ignoring test case: [codegen] repr-transparent-aggregates-1.rs for aarch64joacar01-0/+1
Copyright (c) 2020, Arm Limited.
2020-06-04test: codegen: skip tests inappropriate for riscv64Tom Eccles-0/+1
2020-01-20stabilize transparent_enumsMazdak Farrokhzad-1/+1
2019-07-15Update transparent aggregate codegen test for byval changesNikita Popov-8/+10
2019-06-10Implement RFC 2645 (transparent enums and unions)Michael Bradshaw-9/+50
Tracking issue: #60405
2018-12-25Remove licensesMark Rousskov-10/+0
2018-06-12Stabilize #[repr(transparent)]Simon Sapin-1/+0
Tracking issue FCP: https://github.com/rust-lang/rust/issues/43036#issuecomment-394094318 Reference PR: https://github.com/rust-lang-nursery/reference/pull/353
2018-03-19Revert "Remove useless powerpc64 entry from ARCH_TABLE, closes #47737"varkor-0/+1
This reverts commit 16ac85ce4dce1e185f2e6ce27df3833e07a9e502.
2018-03-04Remove useless powerpc64 entry from ARCH_TABLE, closes #47737debris-1/+0
2018-01-16Implement repr(transparent)Robin Kruppe-0/+53