]>
Commit | Line | Data |
---|---|---|
f9f354fc | 1 | error: type `i128` cannot be used with this register class |
a2a8927a | 2 | --> $DIR/type-check-3.rs:14:28 |
f9f354fc XL |
3 | | |
4 | LL | asm!("{}", in(reg) 0i128); | |
5 | | ^^^^^ | |
6 | | | |
7 | = note: register class `reg` supports these types: i16, i32, i64, f32, f64 | |
8 | ||
1b1a35ee | 9 | error: type `__m128` cannot be used with this register class |
a2a8927a | 10 | --> $DIR/type-check-3.rs:16:28 |
f9f354fc XL |
11 | | |
12 | LL | asm!("{}", in(reg) _mm_setzero_ps()); | |
13 | | ^^^^^^^^^^^^^^^^ | |
14 | | | |
15 | = note: register class `reg` supports these types: i16, i32, i64, f32, f64 | |
16 | ||
1b1a35ee | 17 | error: type `__m256` cannot be used with this register class |
a2a8927a | 18 | --> $DIR/type-check-3.rs:18:28 |
f9f354fc XL |
19 | | |
20 | LL | asm!("{}", in(reg) _mm256_setzero_ps()); | |
21 | | ^^^^^^^^^^^^^^^^^^^ | |
22 | | | |
23 | = note: register class `reg` supports these types: i16, i32, i64, f32, f64 | |
24 | ||
25 | error: type `u8` cannot be used with this register class | |
a2a8927a | 26 | --> $DIR/type-check-3.rs:20:32 |
f9f354fc XL |
27 | | |
28 | LL | asm!("{}", in(xmm_reg) 0u8); | |
29 | | ^^^ | |
30 | | | |
31 | = note: register class `xmm_reg` supports these types: i32, i64, f32, f64, i8x16, i16x8, i32x4, i64x2, f32x4, f64x2 | |
32 | ||
33 | error: `avx512bw` target feature is not enabled | |
a2a8927a | 34 | --> $DIR/type-check-3.rs:29:29 |
f9f354fc XL |
35 | | |
36 | LL | asm!("{}", in(kreg) 0u64); | |
37 | | ^^^^ | |
38 | | | |
39 | = note: this is required to use type `u64` with register class `kreg` | |
40 | ||
41 | warning: formatting may not be suitable for sub-register argument | |
a2a8927a | 42 | --> $DIR/type-check-3.rs:34:15 |
f9f354fc XL |
43 | | |
44 | LL | asm!("{0} {0}", in(reg) 0i16); | |
45 | | ^^^ ^^^ ---- for this argument | |
46 | | | |
f2b60f7d FG |
47 | = help: use `{0:x}` to have the register formatted as `ax` |
48 | = help: or use `{0:r}` to keep the default formatting of `rax` | |
2b03887a | 49 | = note: `#[warn(asm_sub_register)]` on by default |
f9f354fc XL |
50 | |
51 | warning: formatting may not be suitable for sub-register argument | |
a2a8927a | 52 | --> $DIR/type-check-3.rs:36:15 |
f9f354fc XL |
53 | | |
54 | LL | asm!("{0} {0:x}", in(reg) 0i16); | |
55 | | ^^^ ---- for this argument | |
56 | | | |
f2b60f7d FG |
57 | = help: use `{0:x}` to have the register formatted as `ax` |
58 | = help: or use `{0:r}` to keep the default formatting of `rax` | |
f9f354fc XL |
59 | |
60 | warning: formatting may not be suitable for sub-register argument | |
a2a8927a | 61 | --> $DIR/type-check-3.rs:38:15 |
f9f354fc XL |
62 | | |
63 | LL | asm!("{}", in(reg) 0i32); | |
64 | | ^^ ---- for this argument | |
65 | | | |
f2b60f7d FG |
66 | = help: use `{0:e}` to have the register formatted as `eax` |
67 | = help: or use `{0:r}` to keep the default formatting of `rax` | |
f9f354fc XL |
68 | |
69 | warning: formatting may not be suitable for sub-register argument | |
a2a8927a | 70 | --> $DIR/type-check-3.rs:41:15 |
f9f354fc XL |
71 | | |
72 | LL | asm!("{}", in(ymm_reg) 0i64); | |
73 | | ^^ ---- for this argument | |
74 | | | |
f2b60f7d FG |
75 | = help: use `{0:x}` to have the register formatted as `xmm0` |
76 | = help: or use `{0:y}` to keep the default formatting of `ymm0` | |
f9f354fc XL |
77 | |
78 | error: type `i8` cannot be used with this register class | |
a2a8927a | 79 | --> $DIR/type-check-3.rs:52:28 |
f9f354fc XL |
80 | | |
81 | LL | asm!("{}", in(reg) 0i8); | |
82 | | ^^^ | |
83 | | | |
84 | = note: register class `reg` supports these types: i16, i32, i64, f32, f64 | |
85 | = help: consider using the `reg_byte` register class instead | |
86 | ||
87 | error: incompatible types for asm inout argument | |
a2a8927a | 88 | --> $DIR/type-check-3.rs:64:33 |
f9f354fc XL |
89 | | |
90 | LL | asm!("{:r}", inout(reg) 0u32 => val_f32); | |
91 | | ^^^^ ^^^^^^^ type `f32` | |
92 | | | | |
93 | | type `u32` | |
94 | | | |
95 | = note: asm inout arguments must have the same type, unless they are both pointers or integers of the same size | |
96 | ||
97 | error: incompatible types for asm inout argument | |
a2a8927a | 98 | --> $DIR/type-check-3.rs:66:33 |
f9f354fc XL |
99 | | |
100 | LL | asm!("{:r}", inout(reg) 0u32 => val_ptr); | |
101 | | ^^^^ ^^^^^^^ type `*mut u8` | |
102 | | | | |
103 | | type `u32` | |
104 | | | |
105 | = note: asm inout arguments must have the same type, unless they are both pointers or integers of the same size | |
106 | ||
107 | error: incompatible types for asm inout argument | |
a2a8927a | 108 | --> $DIR/type-check-3.rs:68:33 |
f9f354fc XL |
109 | | |
110 | LL | asm!("{:r}", inout(reg) main => val_u32); | |
111 | | ^^^^ ^^^^^^^ type `u32` | |
112 | | | | |
113 | | type `fn()` | |
114 | | | |
115 | = note: asm inout arguments must have the same type, unless they are both pointers or integers of the same size | |
116 | ||
923072b8 | 117 | error: aborting due to 9 previous errors; 4 warnings emitted |
f9f354fc | 118 |