]> git.proxmox.com Git - rustc.git/blame - src/test/ui/asm/aarch64/type-check-3.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / asm / aarch64 / type-check-3.stderr
CommitLineData
c295e0f8 1warning: formatting may not be suitable for sub-register argument
a2a8927a 2 --> $DIR/type-check-3.rs:48:15
c295e0f8
XL
3 |
4LL | asm!("{}", in(reg) 0u8);
5 | ^^ --- for this argument
6 |
f2b60f7d
FG
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`
2b03887a 9 = note: `#[warn(asm_sub_register)]` on by default
c295e0f8
XL
10
11warning: formatting may not be suitable for sub-register argument
a2a8927a 12 --> $DIR/type-check-3.rs:50:15
c295e0f8
XL
13 |
14LL | asm!("{}", in(reg) 0u16);
15 | ^^ ---- for this argument
16 |
f2b60f7d
FG
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`
c295e0f8
XL
19
20warning: formatting may not be suitable for sub-register argument
a2a8927a 21 --> $DIR/type-check-3.rs:52:15
c295e0f8
XL
22 |
23LL | asm!("{}", in(reg) 0i32);
24 | ^^ ---- for this argument
25 |
f2b60f7d
FG
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`
c295e0f8
XL
28
29warning: formatting may not be suitable for sub-register argument
a2a8927a 30 --> $DIR/type-check-3.rs:54:15
c295e0f8
XL
31 |
32LL | asm!("{}", in(reg) 0f32);
33 | ^^ ---- for this argument
34 |
f2b60f7d
FG
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`
c295e0f8
XL
37
38warning: formatting may not be suitable for sub-register argument
a2a8927a 39 --> $DIR/type-check-3.rs:57:15
c295e0f8
XL
40 |
41LL | asm!("{}", in(vreg) 0i16);
42 | ^^ ---- for this argument
43 |
f2b60f7d
FG
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`
c295e0f8
XL
46
47warning: formatting may not be suitable for sub-register argument
a2a8927a 48 --> $DIR/type-check-3.rs:59:15
c295e0f8
XL
49 |
50LL | asm!("{}", in(vreg) 0f32);
51 | ^^ ---- for this argument
52 |
f2b60f7d
FG
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`
c295e0f8
XL
55
56warning: formatting may not be suitable for sub-register argument
a2a8927a 57 --> $DIR/type-check-3.rs:61:15
c295e0f8
XL
58 |
59LL | asm!("{}", in(vreg) 0f64);
60 | ^^ ---- for this argument
61 |
f2b60f7d
FG
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`
c295e0f8
XL
64
65warning: formatting may not be suitable for sub-register argument
a2a8927a 66 --> $DIR/type-check-3.rs:63:15
c295e0f8
XL
67 |
68LL | asm!("{}", in(vreg_low16) 0f64);
69 | ^^ ---- for this argument
70 |
f2b60f7d
FG
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`
c295e0f8
XL
73
74warning: formatting may not be suitable for sub-register argument
a2a8927a 75 --> $DIR/type-check-3.rs:66:15
c295e0f8
XL
76 |
77LL | asm!("{0} {0}", in(reg) 0i16);
78 | ^^^ ^^^ ---- for this argument
79 |
f2b60f7d
FG
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`
c295e0f8
XL
82
83warning: formatting may not be suitable for sub-register argument
a2a8927a 84 --> $DIR/type-check-3.rs:68:15
c295e0f8
XL
85 |
86LL | asm!("{0} {0:x}", in(reg) 0i16);
87 | ^^^ ---- for this argument
88 |
f2b60f7d
FG
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`
c295e0f8
XL
91
92error: type `i128` cannot be used with this register class
a2a8927a 93 --> $DIR/type-check-3.rs:73:28
c295e0f8
XL
94 |
95LL | asm!("{}", in(reg) 0i128);
96 | ^^^^^
97 |
98 = note: register class `reg` supports these types: i8, i16, i32, i64, f32, f64
99
100error: type `float64x2_t` cannot be used with this register class
a2a8927a 101 --> $DIR/type-check-3.rs:75:28
c295e0f8
XL
102 |
103LL | asm!("{}", in(reg) f64x2);
104 | ^^^^^
105 |
106 = note: register class `reg` supports these types: i8, i16, i32, i64, f32, f64
107
108error: type `Simd256bit` cannot be used with this register class
a2a8927a 109 --> $DIR/type-check-3.rs:77:29
c295e0f8
XL
110 |
111LL | asm!("{}", in(vreg) f64x4);
112 | ^^^^^
113 |
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
115
116error: incompatible types for asm inout argument
a2a8927a 117 --> $DIR/type-check-3.rs:88:33
c295e0f8
XL
118 |
119LL | asm!("{:x}", inout(reg) 0u32 => val_f32);
120 | ^^^^ ^^^^^^^ type `f32`
121 | |
122 | type `u32`
123 |
124 = note: asm inout arguments must have the same type, unless they are both pointers or integers of the same size
125
126error: incompatible types for asm inout argument
a2a8927a 127 --> $DIR/type-check-3.rs:90:33
c295e0f8
XL
128 |
129LL | asm!("{:x}", inout(reg) 0u32 => val_ptr);
130 | ^^^^ ^^^^^^^ type `*mut u8`
131 | |
132 | type `u32`
133 |
134 = note: asm inout arguments must have the same type, unless they are both pointers or integers of the same size
135
136error: incompatible types for asm inout argument
a2a8927a 137 --> $DIR/type-check-3.rs:92:33
c295e0f8
XL
138 |
139LL | asm!("{:x}", inout(reg) main => val_u32);
140 | ^^^^ ^^^^^^^ type `u32`
141 | |
142 | type `fn()`
143 |
144 = note: asm inout arguments must have the same type, unless they are both pointers or integers of the same size
145
923072b8 146error: aborting due to 6 previous errors; 10 warnings emitted
c295e0f8 147