@@ -4,8 +4,8 @@ warning: formatting may not be suitable for sub-register argument
4
4
LL | asm!("{}", in(reg) 0u8);
5
5
| ^^ --- for this argument
6
6
|
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)
9
9
= note: `#[warn(asm_sub_register)]` on by default
10
10
11
11
warning: formatting may not be suitable for sub-register argument
@@ -14,80 +14,80 @@ warning: formatting may not be suitable for sub-register argument
14
14
LL | asm!("{}", in(reg) 0u16);
15
15
| ^^ ---- for this argument
16
16
|
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)
19
19
20
20
warning: formatting may not be suitable for sub-register argument
21
21
--> $DIR/type-check-3.rs:52:15
22
22
|
23
23
LL | asm!("{}", in(reg) 0i32);
24
24
| ^^ ---- for this argument
25
25
|
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)
28
28
29
29
warning: formatting may not be suitable for sub-register argument
30
30
--> $DIR/type-check-3.rs:54:15
31
31
|
32
32
LL | asm!("{}", in(reg) 0f32);
33
33
| ^^ ---- for this argument
34
34
|
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)
37
37
38
38
warning: formatting may not be suitable for sub-register argument
39
39
--> $DIR/type-check-3.rs:57:15
40
40
|
41
41
LL | asm!("{}", in(vreg) 0i16);
42
42
| ^^ ---- for this argument
43
43
|
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)
46
46
47
47
warning: formatting may not be suitable for sub-register argument
48
48
--> $DIR/type-check-3.rs:59:15
49
49
|
50
50
LL | asm!("{}", in(vreg) 0f32);
51
51
| ^^ ---- for this argument
52
52
|
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)
55
55
56
56
warning: formatting may not be suitable for sub-register argument
57
57
--> $DIR/type-check-3.rs:61:15
58
58
|
59
59
LL | asm!("{}", in(vreg) 0f64);
60
60
| ^^ ---- for this argument
61
61
|
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)
64
64
65
65
warning: formatting may not be suitable for sub-register argument
66
66
--> $DIR/type-check-3.rs:63:15
67
67
|
68
68
LL | asm!("{}", in(vreg_low16) 0f64);
69
69
| ^^ ---- for this argument
70
70
|
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)
73
73
74
74
warning: formatting may not be suitable for sub-register argument
75
75
--> $DIR/type-check-3.rs:66:15
76
76
|
77
77
LL | asm!("{0} {0}", in(reg) 0i16);
78
78
| ^^^ ^^^ ---- for this argument
79
79
|
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)
82
82
83
83
warning: formatting may not be suitable for sub-register argument
84
84
--> $DIR/type-check-3.rs:68:15
85
85
|
86
86
LL | asm!("{0} {0:x}", in(reg) 0i16);
87
87
| ^^^ ---- for this argument
88
88
|
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)
91
91
92
92
error: type `i128` cannot be used with this register class
93
93
--> $DIR/type-check-3.rs:73:28
0 commit comments