]>
Commit | Line | Data |
---|---|---|
8bb4bdeb XL |
1 | // Copyright 2017 The Rust Project Developers. See the COPYRIGHT |
2 | // file at the top-level directory of this distribution and at | |
3 | // http://rust-lang.org/COPYRIGHT. | |
4 | // | |
5 | // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | |
6 | // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | |
7 | // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | |
8 | // option. This file may not be copied, modified, or distributed | |
9 | // except according to those terms. | |
10 | ||
ff7c6d11 XL |
11 | // ignore-arm |
12 | // ignore-aarch64 | |
13 | // ignore-emscripten | |
14 | // compile-flags: -O | |
8bb4bdeb | 15 | |
ff7c6d11 XL |
16 | #![feature(repr_simd)] |
17 | #![crate_type="lib"] | |
7cac9316 | 18 | |
ff7c6d11 XL |
19 | #[repr(simd)] |
20 | #[derive(Clone, Copy)] | |
21 | pub struct i8x8(u64); | |
7cac9316 | 22 | |
ff7c6d11 XL |
23 | #[no_mangle] |
24 | pub fn a(a: &mut i8x8, b: i8x8) -> i8x8 { | |
25 | // CHECK-LABEL: define x86_mmx @a(x86_mmx*{{.*}}, x86_mmx{{.*}}) | |
26 | // CHECK: store x86_mmx %b, x86_mmx* %a | |
27 | // CHECK: ret x86_mmx %b | |
28 | *a = b; | |
29 | return b | |
7cac9316 | 30 | } |