Rollup merge of #49665 - draganmladjenovic:mips_tests, r=nikomatsakis
Small nits to make couple of tests pass on mips targets.
This commit is contained in:
commit
1bdb9a5cfa
5 changed files with 18 additions and 8 deletions
|
@ -15,8 +15,14 @@
|
||||||
// CHECK: @VAR1 = constant <{ [4 x i8] }> <{ [4 x i8] c"\01\00\00\00" }>, section ".test_one"
|
// CHECK: @VAR1 = constant <{ [4 x i8] }> <{ [4 x i8] c"\01\00\00\00" }>, section ".test_one"
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
#[link_section = ".test_one"]
|
#[link_section = ".test_one"]
|
||||||
|
#[cfg(target_endian = "little")]
|
||||||
pub static VAR1: u32 = 1;
|
pub static VAR1: u32 = 1;
|
||||||
|
|
||||||
|
#[no_mangle]
|
||||||
|
#[link_section = ".test_one"]
|
||||||
|
#[cfg(target_endian = "big")]
|
||||||
|
pub static VAR1: u32 = 0x01000000;
|
||||||
|
|
||||||
pub enum E {
|
pub enum E {
|
||||||
A(u32),
|
A(u32),
|
||||||
B(f32)
|
B(f32)
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
// ignore-emscripten
|
// ignore-emscripten
|
||||||
// ignore-powerpc
|
// ignore-powerpc
|
||||||
// ignore-sparc
|
// ignore-sparc
|
||||||
|
// ignore-mips
|
||||||
|
|
||||||
#![feature(asm)]
|
#![feature(asm)]
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
error[E0384]: cannot assign twice to immutable variable `x`
|
error[E0384]: cannot assign twice to immutable variable `x`
|
||||||
--> $DIR/asm-out-assign-imm.rs:29:9
|
--> $DIR/asm-out-assign-imm.rs:30:9
|
||||||
|
|
|
|
||||||
LL | x = 1;
|
LL | x = 1;
|
||||||
| ----- first assignment to `x`
|
| ----- first assignment to `x`
|
||||||
|
|
|
@ -12,6 +12,9 @@
|
||||||
// ignore-aarch64
|
// ignore-aarch64
|
||||||
// ignore-wasm
|
// ignore-wasm
|
||||||
// ignore-emscripten
|
// ignore-emscripten
|
||||||
|
// ignore-mips
|
||||||
|
// ignore-powerpc
|
||||||
|
// ignore-s390x
|
||||||
|
|
||||||
#![feature(target_feature)]
|
#![feature(target_feature)]
|
||||||
|
|
||||||
|
|
|
@ -1,35 +1,35 @@
|
||||||
warning: #[target_feature = ".."] is deprecated and will eventually be removed, use #[target_feature(enable = "..")] instead
|
warning: #[target_feature = ".."] is deprecated and will eventually be removed, use #[target_feature(enable = "..")] instead
|
||||||
--> $DIR/target-feature-wrong.rs:18:1
|
--> $DIR/target-feature-wrong.rs:21:1
|
||||||
|
|
|
|
||||||
LL | #[target_feature = "+sse2"]
|
LL | #[target_feature = "+sse2"]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
error: the feature named `foo` is not valid for this target
|
error: the feature named `foo` is not valid for this target
|
||||||
--> $DIR/target-feature-wrong.rs:20:18
|
--> $DIR/target-feature-wrong.rs:23:18
|
||||||
|
|
|
|
||||||
LL | #[target_feature(enable = "foo")]
|
LL | #[target_feature(enable = "foo")]
|
||||||
| ^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^
|
||||||
|
|
||||||
error: #[target_feature(..)] only accepts sub-keys of `enable` currently
|
error: #[target_feature(..)] only accepts sub-keys of `enable` currently
|
||||||
--> $DIR/target-feature-wrong.rs:22:18
|
--> $DIR/target-feature-wrong.rs:25:18
|
||||||
|
|
|
|
||||||
LL | #[target_feature(bar)]
|
LL | #[target_feature(bar)]
|
||||||
| ^^^
|
| ^^^
|
||||||
|
|
||||||
error: #[target_feature(..)] only accepts sub-keys of `enable` currently
|
error: #[target_feature(..)] only accepts sub-keys of `enable` currently
|
||||||
--> $DIR/target-feature-wrong.rs:24:18
|
--> $DIR/target-feature-wrong.rs:27:18
|
||||||
|
|
|
|
||||||
LL | #[target_feature(disable = "baz")]
|
LL | #[target_feature(disable = "baz")]
|
||||||
| ^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
error: #[target_feature(..)] can only be applied to `unsafe` function
|
error: #[target_feature(..)] can only be applied to `unsafe` function
|
||||||
--> $DIR/target-feature-wrong.rs:28:1
|
--> $DIR/target-feature-wrong.rs:31:1
|
||||||
|
|
|
|
||||||
LL | #[target_feature(enable = "sse2")]
|
LL | #[target_feature(enable = "sse2")]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
error: attribute should be applied to a function
|
error: attribute should be applied to a function
|
||||||
--> $DIR/target-feature-wrong.rs:32:1
|
--> $DIR/target-feature-wrong.rs:35:1
|
||||||
|
|
|
|
||||||
LL | #[target_feature(enable = "sse2")]
|
LL | #[target_feature(enable = "sse2")]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
@ -38,7 +38,7 @@ LL | mod another {}
|
||||||
| -------------- not a function
|
| -------------- not a function
|
||||||
|
|
||||||
error: cannot use #[inline(always)] with #[target_feature]
|
error: cannot use #[inline(always)] with #[target_feature]
|
||||||
--> $DIR/target-feature-wrong.rs:36:1
|
--> $DIR/target-feature-wrong.rs:39:1
|
||||||
|
|
|
|
||||||
LL | #[inline(always)]
|
LL | #[inline(always)]
|
||||||
| ^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue