Commit Graph

767 Commits

Author SHA1 Message Date
Caleb Zulawski
2596ab4d75 Allow actual AVX512-related feature names in the case of some misleading aliases 2022-11-12 18:46:21 -05:00
Ralf Jung
e876f43599 fix cranelift and gcc 2022-11-06 14:17:10 +01:00
Ayush Singh
87237cb699 Add type_array to BaseTypeMethods
Moved type_array function to rustc_codegen_ssa::BaseTypeMethods trait.
This allows using normal alloca function to create arrays as suggested in
https://github.com/rust-lang/rust/pull/104022.

Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
2022-11-06 14:18:36 +05:30
Amanieu d'Antras
5a1c8e8e5c Rewrite implementation of #[alloc_error_handler]
The new implementation doesn't use weak lang items and instead changes
`#[alloc_error_handler]` to an attribute macro just like
`#[global_allocator]`.

The attribute will generate the `__rg_oom` function which is called by
the compiler-generated `__rust_alloc_error_handler`. If no `__rg_oom`
function is defined in any crate then the compiler shim will call
`__rdl_oom` in the alloc crate which will simply panic.

This also fixes link errors with `-C link-dead-code` with
`default_alloc_error_handler`: `__rg_oom` was previously defined in the
alloc crate and would attempt to reference the `oom` lang item, even if
it didn't exist. This worked as long as `__rg_oom` was excluded from
linking since it was not called.

This is a prerequisite for the stabilization of
`default_alloc_error_handler` (#102318).
2022-10-31 16:32:57 +00:00
antoyo
bfc184cd2c
Merge pull request #232 from GuillaumeGomez/more-inline-asm-register-class-conversion
Add missing register class conversion for inline asm
2022-10-26 12:20:15 -04:00
Guillaume Gomez
bf3ef4ce1a Revert changes in argument parsing for setting asm syntax 2022-10-26 17:04:58 +02:00
bors
a1d984ce61 Auto merge of #103392 - RalfJung:miri, r=oli-obk
update Miri

I had to use a hacked version of josh to create this, so let's be careful with merging this and maybe wait a bit to see if the josh issue becomes more clear. But the history looks good to me, we are not adding duplicates of rustc commits that were previously mirrored to Miri.

Also I want to add some cross-testing of Miri in x.py.
2022-10-25 12:33:39 +00:00
Daniel Paoliello
e30385bc06 Support raw-dylib functions being used inside inlined functions 2022-10-24 16:17:38 -07:00
antoyo
fac8d3aacf
Merge pull request #238 from GuillaumeGomez/fix-build-instructions
Fix gcc build instructions
2022-10-24 12:17:56 -04:00
Guillaume Gomez
1a2c8b01cb Fix gcc build instructions 2022-10-24 17:00:42 +02:00
Guillaume Gomez
78f960be32 Disable asm tests in CI 2022-10-24 16:47:55 +02:00
Nilstrieb
d3b02e3186 Migrate all diagnostics 2022-10-23 10:09:44 +02:00
Ralf Jung
1e9d9b184c merge rustc history 2022-10-21 10:18:54 +02:00
antoyo
cc5c38717d
Merge pull request #236 from GuillaumeGomez/install-doc
Improve installation documentation
2022-10-19 18:27:22 -04:00
Guillaume Gomez
ea52df463b
Fix typo 2022-10-19 23:47:42 +02:00
Guillaume Gomez
c89e3e9b0c Update Readme.md 2022-10-19 21:01:08 +02:00
Guillaume Gomez
994a669e26 Make the asm test suite run on its own 2022-10-18 23:35:47 +02:00
Guillaume Gomez
f150ab3277 Improve code generating inline ASM 2022-10-18 23:11:46 +02:00
Guillaume Gomez
5484c131a5 Don't override -masm option if set in the command arguments 2022-10-18 22:45:22 +02:00
Guillaume Gomez
1b60286103 Implement constraits modifiers 2022-10-18 17:44:33 +02:00
Guillaume Gomez
549fbe8ecb Set llvm-filecheck binary path into rustc config 2022-10-18 17:44:33 +02:00
Guillaume Gomez
94a4a4c350 Convert llvm-arg --x86-asm-syntax into GCC arg -masm 2022-10-18 16:31:50 +02:00
Guillaume Gomez
d04e66fd0f Run assembly tests in the CI 2022-10-18 16:31:50 +02:00
Guillaume Gomez
ccfe7d8898 Add asm test suite 2022-10-18 16:31:49 +02:00
Guillaume Gomez
b3198c72db Add missing register class conversion for inline asm 2022-10-18 16:29:33 +02:00
Guillaume Gomez
25d482856e
Improve installation documentation 2022-10-17 23:47:18 +02:00
Amanieu d'Antras
14e0e0fec3 Stabilize asm_sym 2022-10-17 22:38:37 +01:00
antoyo
618553b9b4
Merge pull request #234 from paulcacheux/paulcacheux/remove-rustc-patch
Remove not applicable rustc patch
2022-10-17 12:14:18 -04:00
Paul Cacheux
db489d06cf remove empty directory 2022-10-17 09:42:33 +02:00
Paul Cacheux
94d58b1bd3 remove not applicable rustc patch 2022-10-15 16:20:42 +02:00
antoyo
7f95363a97
Merge pull request #233 from paulcacheux/paulcacheux/bump-github-actions
Bump Github actions
2022-10-15 10:00:46 -04:00
Paul Cacheux
cd01e8db68 remove cargo cache fixups 2022-10-15 14:40:01 +02:00
Paul Cacheux
12bfb01b91 bump actions for node16 2022-10-15 14:39:43 +02:00
antoyo
e84f9a1592
Merge pull request #231 from rust-lang/fix/simd_select_bitmask
Fix/simd select bitmask
2022-10-09 17:24:59 -04:00
Antoni Boucher
173db39f91 Fix simd_select 2022-10-09 14:24:35 -04:00
Antoni Boucher
e5ce7a9846 Fix simd_select_bitmask 2022-10-09 14:24:35 -04:00
antoyo
04fd2d3c9c
Merge pull request #230 from rust-lang/fix/simd_bitmask
Fix/simd bitmask
2022-10-09 12:37:42 -04:00
Antoni Boucher
f73dea7e55 Fix simd_bitmask 2022-10-09 11:42:12 -04:00
Antoni Boucher
1fa8b26426 Fix vector_select 2022-10-09 11:25:40 -04:00
antoyo
44e3ea3e42
Merge pull request #229 from rust-lang/fix/fmaddsub
Fix/fmaddsub
2022-10-08 16:05:48 -04:00
Antoni Boucher
74dac5d970 Fix vfmadd 2022-10-08 15:05:23 -04:00
Antoni Boucher
c573621812 Fix some vfmaddsub intrinsics 2022-10-08 14:45:17 -04:00
Antoni Boucher
23a1a86835 More debug options 2022-10-08 14:37:19 -04:00
bors
f0e40831df Auto merge of #2583 - RalfJung:rustup, r=oli-obk
initial josh subtree sync

This demonstrates what a josh-based rustup would look like with my patched josh. To create it I did
```
git fetch http://localhost:8000/rust-lang/rust.git:start=75dd959a3a40eb5b4574f8d2e23aa6efbeb33573[:prefix=src/tools/miri]:/src/tools/miri.git master
git merge FETCH_HEAD
./rustup-toolchain HEAD && ./miri fmt
git commit -am rustup
```
Unlike the [previous attempt](https://github.com/rust-lang/miri/pull/2554), this does not add a new root commit to the repo.

Once we merge this, we committed to using josh for subtree syncing, and in particular a version of josh that includes https://github.com/josh-project/josh/pull/961 (or something compatible).
2022-10-08 08:53:29 +00:00
antoyo
235414efae
Merge pull request #228 from sadlerap/simd-as
simd: enable simd_as intrinsic
2022-10-02 22:27:29 -04:00
Andy Sadler
436710fa9b
simd: enable simd_as intrinsic
The method context.convert_vector, added to libgccjit for simd_cast,
appears to give the correct behavior for simd_as.  Instead of
special-casing simd_as, re-use simd_cast's impl for simd_as.

Signed-off-by: Andy Sadler <andrewsadler122@gmail.com>
2022-10-02 19:04:49 -05:00
bjorn3
413edf6771 Remove type argument of array_alloca and rename to byte_array_alloca 2022-10-02 13:42:14 +00:00
bjorn3
af0b18b454 Remove dynamic_alloca from BuilderMethods 2022-10-02 13:42:02 +00:00
antoyo
86a3e3bd03
Merge pull request #227 from rust-lang/fix/warnings
Fix warnings
2022-10-01 20:22:32 -04:00
Antoni Boucher
a28618d2ef Fix warnings 2022-10-01 19:53:14 -04:00