diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2019-07-07 19:08:40 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-07-09 21:55:29 +0200 |
| commit | 5c95f5fa6b6024ea0b8ed162e5d2c46c41aea1b0 (patch) | |
| tree | b4adf84eda41c22a58c084917b9a893dc8df9659 /src/librustc_codegen_ssa | |
| parent | 8789c9e59596c5f89c6be6b82a880e016d6c2f31 (diff) | |
| download | rust-5c95f5fa6b6024ea0b8ed162e5d2c46c41aea1b0.tar.gz rust-5c95f5fa6b6024ea0b8ed162e5d2c46c41aea1b0.zip | |
Fix float add/mul reduction codegen
The accumulator is now respected for unordered reductions.
Diffstat (limited to 'src/librustc_codegen_ssa')
| -rw-r--r-- | src/librustc_codegen_ssa/traits/consts.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc_codegen_ssa/traits/consts.rs b/src/librustc_codegen_ssa/traits/consts.rs index 46286b5329e..248fadfaf0f 100644 --- a/src/librustc_codegen_ssa/traits/consts.rs +++ b/src/librustc_codegen_ssa/traits/consts.rs @@ -17,6 +17,7 @@ pub trait ConstMethods<'tcx>: BackendTypes { fn const_u64(&self, i: u64) -> Self::Value; fn const_usize(&self, i: u64) -> Self::Value; fn const_u8(&self, i: u8) -> Self::Value; + fn const_real(&self, t: Self::Type, val: f64) -> Self::Value; fn const_struct(&self, elts: &[Self::Value], packed: bool) -> Self::Value; |
