Guillaume Gomez
694a80d372
Add missing --build-sysroot
option
2023-12-04 15:29:23 +01:00
Guillaume Gomez
8cc024c84d
Fix invalid path in build_sysroot_inner
2023-12-04 15:29:23 +01:00
Guillaume Gomez
d3e14a49c9
Display stdout and stderr if a command failed to run
2023-12-04 15:29:23 +01:00
Guillaume Gomez
84ca4f59c2
Remove test.sh
, config.sh
and all calls and documentation pointing to it
2023-12-04 15:29:22 +01:00
Guillaume Gomez
7b76ac4eb7
Rustify test.sh
2023-12-04 15:28:53 +01:00
Guillaume Gomez
04f32f2016
Allow rustfmt to run on build_system
2023-12-04 15:28:53 +01:00
antoyo
0a67e9cd60
Merge pull request #391 from GuillaumeGomez/fix-build-instructions
...
Fix build instructions
2023-12-02 11:42:37 -05:00
Guillaume Gomez
bb4d0be014
Fix build instructions
2023-12-02 16:28:28 +01:00
Andy Sadler
17b2c46c88
remove generic-arithmetic-pass from failing tests
...
This test now passes when tested with a patched libgccjit. However, due
to [some compiler bugs][1], we can't enable this for non-patched
libgccjit yet.
[1]: https://github.com/sadlerap/rustc_codegen_gcc/actions/runs/6820180639/job/18548672444#step:15:4375
Signed-off-by: Andy Sadler <andrewsadler122@gmail.com>
2023-11-28 21:25:43 -06:00
Andy Sadler
3a221320eb
fix simd_neg implementation for ints
...
gcc_not would panic upon encountering a vector type, which is not what
we want here.
Signed-off-by: Andy Sadler <andrewsadler122@gmail.com>
2023-11-28 21:25:42 -06:00
Andy Sadler
03e11a214e
impl simd_ctlz/simd_cttz intrinsic
...
Signed-off-by: Andy Sadler <andrewsadler122@gmail.com>
2023-11-28 21:25:42 -06:00
Andy Sadler
8d42a82b6e
impl simd_bitreverse intrinsic
...
If we're running against a patched libgccjit, use an algorithm similar
to what LLVM uses for this intrinsic. Otherwise, fallback to a
per-element bitreverse.
Signed-off-by: Andy Sadler <andrewsadler122@gmail.com>
2023-11-28 21:25:34 -06:00
Andy Sadler
70586a23a7
fix simd_frem intrinsic implementation
...
The simd intrinsic handler was delegating implementation of `simd_frem`
to `Builder::frem`, which wasn't able to handle vector-typed inputs. To
fix this, teach this method how to handle vector inputs.
Signed-off-by: Andy Sadler <andrewsadler122@gmail.com>
2023-11-28 21:25:23 -06:00
Andy Sadler
6d13f949ee
remove generic-bswap-byte from failing test list
...
Signed-off-by: Andy Sadler <andrewsadler122@gmail.com>
2023-11-28 21:25:23 -06:00
Andy Sadler
cc7c9bea15
implement simd_bswap intrinsic
...
Implements lane-local byte swapping through vector shuffles. While this
is more setup than non-vector shuffles, this implementation can shuffle
multiple integers concurrently.
Signed-off-by: Andy Sadler <andrewsadler122@gmail.com>
2023-11-28 21:25:17 -06:00
antoyo
bcd0bf5450
Merge pull request #388 from rust-lang/sync_from_rust_2023_11_21
...
Sync from rust 2023/11/21
2023-11-22 08:11:06 -05:00
Antoni Boucher
fbb97bd593
Merge branch 'master' into sync_from_rust_2023_11_21
2023-11-22 07:41:52 -05:00
Antoni Boucher
a412e9c411
Update README
2023-11-22 07:40:14 -05:00
Antoni Boucher
456754c21a
Pass TyCtxt by value
2023-11-19 14:04:40 -05:00
Antoni Boucher
75fce09751
Merge commit '2e8386e9fb3506cef991d04f8b3bc78f9a0c2630' into subtree-update_cg_gcc_2023-11-17
2023-11-19 13:42:13 -05:00
antoyo
2e8386e9fb
Merge pull request #387 from rust-lang/sync_from_rust_2023_11_17
...
Sync from rust 2023/11/17
2023-11-19 09:28:06 -05:00
Antoni Boucher
a3b6444909
Fix CI
2023-11-18 13:19:32 -05:00
Antoni Boucher
4d8b25c395
Update patch disabling portable-simd
2023-11-18 10:51:35 -05:00
Antoni Boucher
0e8e60c128
Merge branch 'master' into sync_from_rust_2023_11_17
2023-11-17 17:30:12 -05:00
Mark Rousskov
a6493c1f65
Bump cfg(bootstrap)s
2023-11-15 19:41:28 -05:00
Ralf Jung
b2add8a63e
target_feature: make it more clear what that 'Option' means
2023-11-12 12:46:05 +01:00
antoyo
c6bc7ecd65
Merge pull request #377 from rust-lang/feature/comment-section
...
Feature/comment section
2023-11-08 18:53:15 -05:00
Antoni Boucher
4dbfa4d698
Set the .comment section
2023-11-08 17:24:04 -05:00
antoyo
551ea4b027
Merge pull request #374 from rust-lang/fix/eh-frame
...
Do not emit .eh_frame section if using -Cpanic=abort
2023-11-08 17:18:37 -05:00
Antoni Boucher
cc2af1fb41
Do not emit .eh_frame section when using -Cpanic=abort
2023-11-08 09:10:33 -05:00
antoyo
f20f6bbdbc
Merge pull request #368 from rust-lang/fix/vector-error
...
Fix vector compilation error
2023-11-03 17:56:16 -04:00
Antoni Boucher
9149becf6a
Fix vector compilation error
2023-11-03 09:05:31 -04:00
Guillaume Gomez
a13408d824
Remove libc
dependency in cg_gcc alloc_system example
2023-11-02 21:03:27 +01:00
Guillaume Gomez
1075b80649
Pass --sysroot
option
2023-11-02 21:03:27 +01:00
Guillaume Gomez
a37446bbb7
Fix config.sh script
2023-11-02 21:03:27 +01:00
Guillaume Gomez
34e6386f63
Fix compilation errors in rustc_codegen_gcc examples
2023-11-02 21:03:27 +01:00
Guillaume Gomez
249969c205
Disable master
feature by default when building rustc_codegen_gcc
2023-11-02 21:03:27 +01:00
Antoni Boucher
ff57d7007f
Merge commit '09ce29d0591a21e1abae22eac4d41ffd32993af8' into subtree-update_cg_gcc_2023-10-25
2023-10-27 16:07:01 -04:00
antoyo
09ce29d059
Merge pull request #375 from GuillaumeGomez/fix-build-scripts
...
Make build scripts work with rust bootstrap
2023-10-27 16:06:12 -04:00
Guillaume Gomez
eb10fa345e
Fix build scripts
2023-10-27 17:53:44 +02:00
Antoni Boucher
9f4f90b19a
Merge commit 'e4fe941b11a55c5005630696e9b6d81c65f7bd04' into subtree-update_cg_gcc_2023-10-25
2023-10-26 17:42:02 -04:00
antoyo
e4fe941b11
Merge pull request #371 from rust-lang/sync_from_rust_2023_10_25
...
Sync from rust 2023/10/25
2023-10-26 17:40:15 -04:00
Antoni Boucher
a6984f5961
Fix tests
2023-10-26 08:26:03 -04:00
Antoni Boucher
2a2b3ea48b
Remove duplication in CI
2023-10-25 20:43:51 -04:00
Antoni Boucher
c12ac7ea76
Fix warning
2023-10-25 20:42:47 -04:00
Antoni Boucher
9efb4ce8ba
Update to nightly-2023-10-25
2023-10-25 20:41:45 -04:00
Antoni Boucher
42e37059a3
Fix rebase
2023-10-25 20:41:39 -04:00
Antoni Boucher
4d66cd8aa8
Merge branch 'master' into sync_from_rust_2023_10_25
2023-10-25 20:39:08 -04:00
antoyo
8329a356fc
Merge pull request #369 from GuillaumeGomez/regen-intrinsics
...
Regenerate intrinsics mapping
2023-10-25 18:21:34 -04:00
antoyo
d4a74fba1f
Merge pull request #363 from GuillaumeGomez/test-command
...
Add basics for `test` command in build system
2023-10-25 18:20:42 -04:00