@@ -4,8 +4,8 @@ warning: formatting may not be suitable for sub-register argument
44LL | asm!("{}", in(reg) 0u8);
55 | ^^ --- for this argument
66 |
7- = help: use `{0:w}` to have the register formatted as `w0`
8- = help: or use `{0:x}` to keep the default formatting of `x0`
7+ = help: use `{0:w}` to have the register formatted as `w0` (for 32-bit values)
8+ = help: or use `{0:x}` to keep the default formatting of `x0` (for 64-bit values)
99 = note: `#[warn(asm_sub_register)]` on by default
1010
1111warning: formatting may not be suitable for sub-register argument
@@ -14,80 +14,80 @@ warning: formatting may not be suitable for sub-register argument
1414LL | asm!("{}", in(reg) 0u16);
1515 | ^^ ---- for this argument
1616 |
17- = help: use `{0:w}` to have the register formatted as `w0`
18- = help: or use `{0:x}` to keep the default formatting of `x0`
17+ = help: use `{0:w}` to have the register formatted as `w0` (for 32-bit values)
18+ = help: or use `{0:x}` to keep the default formatting of `x0` (for 64-bit values)
1919
2020warning: formatting may not be suitable for sub-register argument
2121 --> $DIR/type-check-3.rs:52:15
2222 |
2323LL | asm!("{}", in(reg) 0i32);
2424 | ^^ ---- for this argument
2525 |
26- = help: use `{0:w}` to have the register formatted as `w0`
27- = help: or use `{0:x}` to keep the default formatting of `x0`
26+ = help: use `{0:w}` to have the register formatted as `w0` (for 32-bit values)
27+ = help: or use `{0:x}` to keep the default formatting of `x0` (for 64-bit values)
2828
2929warning: formatting may not be suitable for sub-register argument
3030 --> $DIR/type-check-3.rs:54:15
3131 |
3232LL | asm!("{}", in(reg) 0f32);
3333 | ^^ ---- for this argument
3434 |
35- = help: use `{0:w}` to have the register formatted as `w0`
36- = help: or use `{0:x}` to keep the default formatting of `x0`
35+ = help: use `{0:w}` to have the register formatted as `w0` (for 32-bit values)
36+ = help: or use `{0:x}` to keep the default formatting of `x0` (for 64-bit values)
3737
3838warning: formatting may not be suitable for sub-register argument
3939 --> $DIR/type-check-3.rs:57:15
4040 |
4141LL | asm!("{}", in(vreg) 0i16);
4242 | ^^ ---- for this argument
4343 |
44- = help: use `{0:h}` to have the register formatted as `h0`
45- = help: or use `{0:v}` to keep the default formatting of `v0`
44+ = help: use `{0:h}` to have the register formatted as `h0` (for 16-bit values)
45+ = help: or use `{0:v}` to keep the default formatting of `v0` (for 128-bit values)
4646
4747warning: formatting may not be suitable for sub-register argument
4848 --> $DIR/type-check-3.rs:59:15
4949 |
5050LL | asm!("{}", in(vreg) 0f32);
5151 | ^^ ---- for this argument
5252 |
53- = help: use `{0:s}` to have the register formatted as `s0`
54- = help: or use `{0:v}` to keep the default formatting of `v0`
53+ = help: use `{0:s}` to have the register formatted as `s0` (for 32-bit values)
54+ = help: or use `{0:v}` to keep the default formatting of `v0` (for 128-bit values)
5555
5656warning: formatting may not be suitable for sub-register argument
5757 --> $DIR/type-check-3.rs:61:15
5858 |
5959LL | asm!("{}", in(vreg) 0f64);
6060 | ^^ ---- for this argument
6161 |
62- = help: use `{0:d}` to have the register formatted as `d0`
63- = help: or use `{0:v}` to keep the default formatting of `v0`
62+ = help: use `{0:d}` to have the register formatted as `d0` (for 64-bit values)
63+ = help: or use `{0:v}` to keep the default formatting of `v0` (for 128-bit values)
6464
6565warning: formatting may not be suitable for sub-register argument
6666 --> $DIR/type-check-3.rs:63:15
6767 |
6868LL | asm!("{}", in(vreg_low16) 0f64);
6969 | ^^ ---- for this argument
7070 |
71- = help: use `{0:d}` to have the register formatted as `d0`
72- = help: or use `{0:v}` to keep the default formatting of `v0`
71+ = help: use `{0:d}` to have the register formatted as `d0` (for 64-bit values)
72+ = help: or use `{0:v}` to keep the default formatting of `v0` (for 128-bit values)
7373
7474warning: formatting may not be suitable for sub-register argument
7575 --> $DIR/type-check-3.rs:66:15
7676 |
7777LL | asm!("{0} {0}", in(reg) 0i16);
7878 | ^^^ ^^^ ---- for this argument
7979 |
80- = help: use `{0:w}` to have the register formatted as `w0`
81- = help: or use `{0:x}` to keep the default formatting of `x0`
80+ = help: use `{0:w}` to have the register formatted as `w0` (for 32-bit values)
81+ = help: or use `{0:x}` to keep the default formatting of `x0` (for 64-bit values)
8282
8383warning: formatting may not be suitable for sub-register argument
8484 --> $DIR/type-check-3.rs:68:15
8585 |
8686LL | asm!("{0} {0:x}", in(reg) 0i16);
8787 | ^^^ ---- for this argument
8888 |
89- = help: use `{0:w}` to have the register formatted as `w0`
90- = help: or use `{0:x}` to keep the default formatting of `x0`
89+ = help: use `{0:w}` to have the register formatted as `w0` (for 32-bit values)
90+ = help: or use `{0:x}` to keep the default formatting of `x0` (for 64-bit values)
9191
9292error: type `i128` cannot be used with this register class
9393 --> $DIR/type-check-3.rs:73:28
0 commit comments