1 warning: formatting may not be suitable for sub-register argument
2 --> $DIR/type-check-3.rs:48:15
4 LL | asm!("{}", in(reg) 0u8);
5 | ^^ --- for this argument
7 = note: `#[warn(asm_sub_register)]` on by default
8 = help: use the `w` modifier to have the register formatted as `w0`
9 = help: or use the `x` modifier to keep the default formatting of `x0`
11 warning: formatting may not be suitable for sub-register argument
12 --> $DIR/type-check-3.rs:50:15
14 LL | asm!("{}", in(reg) 0u16);
15 | ^^ ---- for this argument
17 = help: use the `w` modifier to have the register formatted as `w0`
18 = help: or use the `x` modifier to keep the default formatting of `x0`
20 warning: formatting may not be suitable for sub-register argument
21 --> $DIR/type-check-3.rs:52:15
23 LL | asm!("{}", in(reg) 0i32);
24 | ^^ ---- for this argument
26 = help: use the `w` modifier to have the register formatted as `w0`
27 = help: or use the `x` modifier to keep the default formatting of `x0`
29 warning: formatting may not be suitable for sub-register argument
30 --> $DIR/type-check-3.rs:54:15
32 LL | asm!("{}", in(reg) 0f32);
33 | ^^ ---- for this argument
35 = help: use the `w` modifier to have the register formatted as `w0`
36 = help: or use the `x` modifier to keep the default formatting of `x0`
38 warning: formatting may not be suitable for sub-register argument
39 --> $DIR/type-check-3.rs:57:15
41 LL | asm!("{}", in(vreg) 0i16);
42 | ^^ ---- for this argument
44 = help: use the `h` modifier to have the register formatted as `h0`
45 = help: or use the `v` modifier to keep the default formatting of `v0`
47 warning: formatting may not be suitable for sub-register argument
48 --> $DIR/type-check-3.rs:59:15
50 LL | asm!("{}", in(vreg) 0f32);
51 | ^^ ---- for this argument
53 = help: use the `s` modifier to have the register formatted as `s0`
54 = help: or use the `v` modifier to keep the default formatting of `v0`
56 warning: formatting may not be suitable for sub-register argument
57 --> $DIR/type-check-3.rs:61:15
59 LL | asm!("{}", in(vreg) 0f64);
60 | ^^ ---- for this argument
62 = help: use the `d` modifier to have the register formatted as `d0`
63 = help: or use the `v` modifier to keep the default formatting of `v0`
65 warning: formatting may not be suitable for sub-register argument
66 --> $DIR/type-check-3.rs:63:15
68 LL | asm!("{}", in(vreg_low16) 0f64);
69 | ^^ ---- for this argument
71 = help: use the `d` modifier to have the register formatted as `d0`
72 = help: or use the `v` modifier to keep the default formatting of `v0`
74 warning: formatting may not be suitable for sub-register argument
75 --> $DIR/type-check-3.rs:66:15
77 LL | asm!("{0} {0}", in(reg) 0i16);
78 | ^^^ ^^^ ---- for this argument
80 = help: use the `w` modifier to have the register formatted as `w0`
81 = help: or use the `x` modifier to keep the default formatting of `x0`
83 warning: formatting may not be suitable for sub-register argument
84 --> $DIR/type-check-3.rs:68:15
86 LL | asm!("{0} {0:x}", in(reg) 0i16);
87 | ^^^ ---- for this argument
89 = help: use the `w` modifier to have the register formatted as `w0`
90 = help: or use the `x` modifier to keep the default formatting of `x0`
92 error: type `i128` cannot be used with this register class
93 --> $DIR/type-check-3.rs:73:28
95 LL | asm!("{}", in(reg) 0i128);
98 = note: register class `reg` supports these types: i8, i16, i32, i64, f32, f64
100 error: type `float64x2_t` cannot be used with this register class
101 --> $DIR/type-check-3.rs:75:28
103 LL | asm!("{}", in(reg) f64x2);
106 = note: register class `reg` supports these types: i8, i16, i32, i64, f32, f64
108 error: type `Simd256bit` cannot be used with this register class
109 --> $DIR/type-check-3.rs:77:29
111 LL | asm!("{}", in(vreg) f64x4);
114 = note: register class `vreg` supports these types: i8, i16, i32, i64, f32, f64, i8x8, i16x4, i32x2, i64x1, f32x2, f64x1, i8x16, i16x8, i32x4, i64x2, f32x4, f64x2
116 error: incompatible types for asm inout argument
117 --> $DIR/type-check-3.rs:88:33
119 LL | asm!("{:x}", inout(reg) 0u32 => val_f32);
120 | ^^^^ ^^^^^^^ type `f32`
124 = note: asm inout arguments must have the same type, unless they are both pointers or integers of the same size
126 error: incompatible types for asm inout argument
127 --> $DIR/type-check-3.rs:90:33
129 LL | asm!("{:x}", inout(reg) 0u32 => val_ptr);
130 | ^^^^ ^^^^^^^ type `*mut u8`
134 = note: asm inout arguments must have the same type, unless they are both pointers or integers of the same size
136 error: incompatible types for asm inout argument
137 --> $DIR/type-check-3.rs:92:33
139 LL | asm!("{:x}", inout(reg) main => val_u32);
140 | ^^^^ ^^^^^^^ type `u32`
144 = note: asm inout arguments must have the same type, unless they are both pointers or integers of the same size
146 error: aborting due to 6 previous errors; 10 warnings emitted