Skip to content

Commit

Permalink
Update issue-89193.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
gcohara authored Sep 27, 2021
1 parent d122a08 commit 88113c5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/test/ui/simd/issue-89193.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fn main() {
let default = x4(0_usize, 1, 2, 3);
let mask = x4(1_i32, 1, 1, 1);
let expected = x4(10_usize, 11, 12, 13);

unsafe {
let pointer = &x[0] as *const usize;
let pointers = x4(
Expand All @@ -36,7 +36,7 @@ fn main() {
let x: [isize; 4] = [10, 11, 12, 13];
let default = x4(0_isize, 1, 2, 3);
let expected = x4(10_isize, 11, 12, 13);

unsafe {
let pointer = &x[0] as *const isize;
let pointers = x4(
Expand All @@ -48,6 +48,4 @@ fn main() {
let result = simd_gather(default, pointers, mask);
assert_eq!(result, expected);
}

}

0 comments on commit 88113c5

Please sign in to comment.