Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 1470920 Details for
Bug 1562196
test run-pass/simd-intrinsic-generic-cast.rs fails in ppc64le
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Reduced test case
simd-cast.rs (text/plain), 834 bytes, created by
Josh Stone
on 2018-07-27 01:18:14 UTC
(
hide
)
Description:
Reduced test case
Filename:
MIME Type:
Creator:
Josh Stone
Created:
2018-07-27 01:18:14 UTC
Size:
834 bytes
patch
obsolete
>#![feature(repr_simd, platform_intrinsics, test)] >#![allow(non_camel_case_types)] > >extern crate test; > >#[repr(simd)] >#[derive(PartialEq, Debug)] >struct i32x4(i32, i32, i32, i32); > >#[repr(simd)] >#[derive(PartialEq, Debug)] >struct f64x4(f64, f64, f64, f64); > > >extern "platform-intrinsic" { > fn simd_cast<T, U>(x: T) -> U; >} > >const A: i32 = -1234567; >const B: i32 = 12345678; >const C: i32 = -123456789; >const D: i32 = 1234567890; > >fn cast(v: f64x4) -> i32x4 { > unsafe { simd_cast(v) } >} > >fn main() { > // force the casts to actually happen, or else LLVM/rustc > // may fold them and get slightly different results. > let (a, b, c, d) = test::black_box((A as f64, B as f64, C as f64, D as f64)); > > let from = cast(f64x4(a, b, c, d)); > let to = i32x4(a as i32, b as i32, c as i32, d as i32); > > assert_eq!(to, from); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1562196
: 1470920