Skip to content

Commit afc99cc

Browse files
Update test for aarch64
1 parent 1bde828 commit afc99cc

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

tests/ui/asm/aarch64/type-check-3.stderr

+20-20
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ warning: formatting may not be suitable for sub-register argument
44
LL | 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

1111
warning: formatting may not be suitable for sub-register argument
@@ -14,80 +14,80 @@ warning: formatting may not be suitable for sub-register argument
1414
LL | 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

2020
warning: formatting may not be suitable for sub-register argument
2121
--> $DIR/type-check-3.rs:52:15
2222
|
2323
LL | 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

2929
warning: formatting may not be suitable for sub-register argument
3030
--> $DIR/type-check-3.rs:54:15
3131
|
3232
LL | 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

3838
warning: formatting may not be suitable for sub-register argument
3939
--> $DIR/type-check-3.rs:57:15
4040
|
4141
LL | 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

4747
warning: formatting may not be suitable for sub-register argument
4848
--> $DIR/type-check-3.rs:59:15
4949
|
5050
LL | 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

5656
warning: formatting may not be suitable for sub-register argument
5757
--> $DIR/type-check-3.rs:61:15
5858
|
5959
LL | 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

6565
warning: formatting may not be suitable for sub-register argument
6666
--> $DIR/type-check-3.rs:63:15
6767
|
6868
LL | 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

7474
warning: formatting may not be suitable for sub-register argument
7575
--> $DIR/type-check-3.rs:66:15
7676
|
7777
LL | 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

8383
warning: formatting may not be suitable for sub-register argument
8484
--> $DIR/type-check-3.rs:68:15
8585
|
8686
LL | 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

9292
error: type `i128` cannot be used with this register class
9393
--> $DIR/type-check-3.rs:73:28

0 commit comments

Comments
 (0)