Commit Graph

394 Commits

Author SHA1 Message Date
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
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
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
antoyo
6f1adbd9e3
Merge pull request #226 from rust-lang/feature/llvm-prefetch
Implement llvm.prefetch
2022-10-01 18:22:06 -04:00
Antoni Boucher
a0654b398b Implement llvm.prefetch 2022-10-01 15:18:51 -04:00
antoyo
98f0dc148d
Merge pull request #224 from rust-lang/fix/gep-release-mode
Add CI tests with a sysroot compiled in release mode
2022-10-01 12:59:27 -04:00
Antoni Boucher
908304e257 Rewrite inbounds_gep with a loop 2022-10-01 12:31:39 -04:00
Antoni Boucher
090cde9811 Disable libcore tests because some fail 2022-10-01 12:31:39 -04:00
Antoni Boucher
6b7e16f87e Add more debugging options 2022-10-01 12:31:39 -04:00
Antoni Boucher
ed570f6678 Fix gep 2022-10-01 12:31:39 -04:00
Antoni Boucher
12105bc0d7 Fix pointer comparison 2022-09-30 18:23:37 -04:00
Antoni Boucher
af28dec7d1 Add CI tests with a sysroot compiled in release mode 2022-09-30 17:53:06 -04:00
antoyo
8ead881fbf
Merge pull request #219 from sadlerap/float-intrinsics
simd: implement float math intrinsics
2022-09-28 10:45:46 -04:00
Andy Sadler
688f742658
simd: implement float math intrinsics
Implements the intrinsics required to pass float-math-pass and
libm_std_can_float ui tests.

Signed-off-by: Andy Sadler <andrewsadler122@gmail.com>
2022-09-27 21:58:55 -05:00
Pietro Albini
d9edc8e869
harden ci configuration 2022-09-26 12:29:10 +02:00
antoyo
1724042e22
Merge pull request #218 from rust-lang/fix/build-release-sysroot
Fix build of release sysroot in test.sh
2022-09-14 09:22:50 -04:00
Antoni Boucher
3e6710962e Fix build of release sysroot in test.sh 2022-09-14 08:26:59 -04:00
antoyo
b0ccfd1f90
Merge pull request #215 from sadlerap/extract-element
simd: impl extract_element for vector types
2022-09-10 07:31:45 -04:00
Andy Sadler
d7d820fc47
simd: impl extract_element for vector types
This fixes some tests that needed vector element extraction.

Signed-off-by: Andy Sadler <andrewsadler122@gmail.com>
2022-09-09 10:07:36 -05:00
Antoni Boucher
2ecd620acb Fix IRC badge 2022-09-04 19:34:24 -04:00
Antoni Boucher
9560cb13fe Add IRC channel in the readme 2022-09-04 19:29:45 -04:00
antoyo
f623e5325a
Merge pull request #214 from sadlerap/minmax
simd: implement simd_fmin/fmax
2022-08-30 21:08:04 -04:00
Andy Sadler
1d3ca135d0
simd: implement simd_fmin/fmax
This implements simd_fmin/fmax in a largely-optimal method.

Signed-off-by: Andy Sadler <andrewsadler122@gmail.com>
2022-08-30 19:34:27 -05:00
antoyo
2342414f49
Merge pull request #213 from rust-lang/fix/bitcast-wrong-size
Fix bitcast to a type of a different size
2022-08-29 17:35:50 -04:00
Antoni Boucher
45ec5f2676 Fix bitcast to a type of a different size 2022-08-28 20:58:11 -04:00
antoyo
866f9c527a
Merge pull request #210 from rust-lang/fix/asm-newline
Remove extra newline in asm
2022-08-27 20:50:38 -04:00
Antoni Boucher
fc56c54416 Remove extra newline in asm 2022-08-27 19:41:37 -04:00
antoyo
06b6ec0ebe
Merge pull request #211 from rust-lang/fix/used-function-attribute-inline-asm
Add used function attribute from inline asm
2022-08-27 18:42:26 -04:00
Antoni Boucher
5c2dec038c Add used function attribute from inline asm 2022-08-27 17:26:46 -04:00
antoyo
9d6b4a9875
Merge pull request #207 from GuillaumeGomez/regen-intrinsics
Regenerate intrinsics
2022-08-27 15:40:59 -04:00
Guillaume Gomez
e82c6a07ff Regen intrinsics 2022-08-27 21:05:25 +02:00
antoyo
346ae2ad4b
Merge pull request #183 from sadlerap/simd-reduction-intrinsics
simd: Implement missing reduction intrinsics
2022-08-27 14:02:24 -04:00
Andy Sadler
4df874f73d simd: Implement missing reduction intrinsics
Implements the following simd reduction intrinsics:
- simd_reduce_add_ordered
- simd_reduce_mul_ordered
- simd_reduce_min_nanless
- simd_reduce_max_nanless
- simd_reduce_xor
- simd_reduce_any
- simd_reduce_all

Also fixes the ordering of simd_reduce_min and simd_reduce_max,
which were tested to be flipped.

Both simd_reduce_min_nanless and simd_reduce_max_nanless are identical
to their non-nanless variants for the time being.  An attempt was made
at a more optimal codegen solution based on vector_reduce_op.  However,
this approach ran into masking issues for floating-point vector types,
which appears to be broken for the same reason that comparison
operations such as simd_lt are broken for floating-point vector types.
More investigation is required, however, to determine a root cause and
appropriate fix.

This should be enough to pass the generic-reduction-pass.rs ui tests
with the 'master' feature enabled.

Signed-off-by: Andy Sadler <andrewsadler122@gmail.com>
2022-08-27 12:16:37 -05:00
antoyo
b4626b3ca0
Merge pull request #209 from rust-lang/2022-08-26_sync_from_rust
2022/08/26 sync from rust
2022-08-27 12:09:37 -04:00
Antoni Boucher
61a7b96c80 Disable test mir_heavy_promoted 2022-08-27 11:44:21 -04:00
Antoni Boucher
eed6603c0a Fix tests 2022-08-27 11:10:34 -04:00
Antoni Boucher
7d01d51e9f Fix tests 2022-08-27 09:50:38 -04:00
Antoni Boucher
9a6b75515e Fix merge conflicts 2022-08-27 09:50:38 -04:00
Antoni Boucher
081eb744d2 Merge branch 'master' into 2022-08-26_sync_from_rust 2022-08-26 20:00:56 -04:00
Yuki Okushi
5b1229eb45 Rollup merge of #100604 - dtolnay:okorerr, r=m-ou-se
Remove unstable Result::into_ok_or_err

Pending FCP: https://github.com/rust-lang/rust/issues/82223#issuecomment-1214920203

```@rustbot``` label +waiting-on-fcp
2022-08-26 09:51:44 +09:00