2014-02-19 12:54:19 +00:00
|
|
|
// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
2014-07-09 12:46:09 +00:00
|
|
|
// Need a fix for LLDB first...
|
|
|
|
// ignore-lldb
|
|
|
|
|
2014-02-19 12:54:19 +00:00
|
|
|
// ignore-android: FIXME(#10381)
|
|
|
|
|
|
|
|
// compile-flags:-g
|
2014-04-24 09:35:48 +00:00
|
|
|
// gdb-command:rbreak zzz
|
|
|
|
// gdb-command:run
|
2014-02-19 12:54:19 +00:00
|
|
|
|
2014-04-24 09:35:48 +00:00
|
|
|
// gdb-command:finish
|
2014-10-02 22:12:58 +00:00
|
|
|
// gdb-command:print/d vi8x16
|
2014-04-24 09:35:48 +00:00
|
|
|
// gdb-check:$1 = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}
|
2014-10-02 22:12:58 +00:00
|
|
|
// gdb-command:print/d vi16x8
|
2014-04-24 09:35:48 +00:00
|
|
|
// gdb-check:$2 = {16, 17, 18, 19, 20, 21, 22, 23}
|
2014-10-02 22:12:58 +00:00
|
|
|
// gdb-command:print/d vi32x4
|
2014-04-24 09:35:48 +00:00
|
|
|
// gdb-check:$3 = {24, 25, 26, 27}
|
2014-10-02 22:12:58 +00:00
|
|
|
// gdb-command:print/d vi64x2
|
2014-04-24 09:35:48 +00:00
|
|
|
// gdb-check:$4 = {28, 29}
|
2014-02-19 12:54:19 +00:00
|
|
|
|
2014-10-02 22:12:58 +00:00
|
|
|
// gdb-command:print/d vu8x16
|
2014-04-24 09:35:48 +00:00
|
|
|
// gdb-check:$5 = {30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45}
|
2014-10-02 22:12:58 +00:00
|
|
|
// gdb-command:print/d vu16x8
|
2014-04-24 09:35:48 +00:00
|
|
|
// gdb-check:$6 = {46, 47, 48, 49, 50, 51, 52, 53}
|
2014-10-02 22:12:58 +00:00
|
|
|
// gdb-command:print/d vu32x4
|
2014-04-24 09:35:48 +00:00
|
|
|
// gdb-check:$7 = {54, 55, 56, 57}
|
2014-10-02 22:12:58 +00:00
|
|
|
// gdb-command:print/d vu64x2
|
2014-04-24 09:35:48 +00:00
|
|
|
// gdb-check:$8 = {58, 59}
|
2014-02-19 12:54:19 +00:00
|
|
|
|
2014-10-02 22:12:58 +00:00
|
|
|
// gdb-command:print vf32x4
|
2014-04-24 09:35:48 +00:00
|
|
|
// gdb-check:$9 = {60.5, 61.5, 62.5, 63.5}
|
2014-10-02 22:12:58 +00:00
|
|
|
// gdb-command:print vf64x2
|
2014-04-24 09:35:48 +00:00
|
|
|
// gdb-check:$10 = {64.5, 65.5}
|
2014-02-19 12:54:19 +00:00
|
|
|
|
2014-04-24 09:35:48 +00:00
|
|
|
// gdb-command:continue
|
2014-02-19 12:54:19 +00:00
|
|
|
|
2014-04-04 00:55:06 +00:00
|
|
|
#![allow(experimental)]
|
2014-04-14 15:30:31 +00:00
|
|
|
#![allow(unused_variable)]
|
2014-02-19 12:54:19 +00:00
|
|
|
|
2014-05-21 03:24:17 +00:00
|
|
|
use std::simd::{i8x16, i16x8,i32x4,i64x2,u8x16,u16x8,u32x4,u64x2,f32x4,f64x2};
|
2014-02-19 12:54:19 +00:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
2014-10-02 22:12:58 +00:00
|
|
|
let vi8x16 = i8x16(0i8, 1i8, 2i8, 3i8, 4i8, 5i8, 6i8, 7i8,
|
2014-02-19 12:54:19 +00:00
|
|
|
8i8, 9i8, 10i8, 11i8, 12i8, 13i8, 14i8, 15i8);
|
|
|
|
|
2014-10-02 22:12:58 +00:00
|
|
|
let vi16x8 = i16x8(16i16, 17i16, 18i16, 19i16, 20i16, 21i16, 22i16, 23i16);
|
|
|
|
let vi32x4 = i32x4(24i32, 25i32, 26i32, 27i32);
|
|
|
|
let vi64x2 = i64x2(28i64, 29i64);
|
2014-02-19 12:54:19 +00:00
|
|
|
|
2014-10-02 22:12:58 +00:00
|
|
|
let vu8x16 = u8x16(30u8, 31u8, 32u8, 33u8, 34u8, 35u8, 36u8, 37u8,
|
2014-02-19 12:54:19 +00:00
|
|
|
38u8, 39u8, 40u8, 41u8, 42u8, 43u8, 44u8, 45u8);
|
2014-10-02 22:12:58 +00:00
|
|
|
let vu16x8 = u16x8(46u16, 47u16, 48u16, 49u16, 50u16, 51u16, 52u16, 53u16);
|
|
|
|
let vu32x4 = u32x4(54u32, 55u32, 56u32, 57u32);
|
|
|
|
let vu64x2 = u64x2(58u64, 59u64);
|
2014-02-19 12:54:19 +00:00
|
|
|
|
2014-10-02 22:12:58 +00:00
|
|
|
let vf32x4 = f32x4(60.5f32, 61.5f32, 62.5f32, 63.5f32);
|
|
|
|
let vf64x2 = f64x2(64.5f64, 65.5f64);
|
2014-02-19 12:54:19 +00:00
|
|
|
|
|
|
|
zzz();
|
|
|
|
}
|
|
|
|
|
|
|
|
#[inline(never)]
|
2014-03-09 21:58:32 +00:00
|
|
|
fn zzz() { () }
|