]> git.proxmox.com Git - rustc.git/blob - src/test/ui/asm/x86_64/type-check-3.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / asm / x86_64 / type-check-3.stderr
1 error: type `i128` cannot be used with this register class
2 --> $DIR/type-check-3.rs:14:28
3 |
4 LL | asm!("{}", in(reg) 0i128);
5 | ^^^^^
6 |
7 = note: register class `reg` supports these types: i16, i32, i64, f32, f64
8
9 error: type `__m128` cannot be used with this register class
10 --> $DIR/type-check-3.rs:16:28
11 |
12 LL | asm!("{}", in(reg) _mm_setzero_ps());
13 | ^^^^^^^^^^^^^^^^
14 |
15 = note: register class `reg` supports these types: i16, i32, i64, f32, f64
16
17 error: type `__m256` cannot be used with this register class
18 --> $DIR/type-check-3.rs:18:28
19 |
20 LL | asm!("{}", in(reg) _mm256_setzero_ps());
21 | ^^^^^^^^^^^^^^^^^^^
22 |
23 = note: register class `reg` supports these types: i16, i32, i64, f32, f64
24
25 error: type `u8` cannot be used with this register class
26 --> $DIR/type-check-3.rs:20:32
27 |
28 LL | asm!("{}", in(xmm_reg) 0u8);
29 | ^^^
30 |
31 = note: register class `xmm_reg` supports these types: i32, i64, f32, f64, i8x16, i16x8, i32x4, i64x2, f32x4, f64x2
32
33 error: `avx512bw` target feature is not enabled
34 --> $DIR/type-check-3.rs:29:29
35 |
36 LL | asm!("{}", in(kreg) 0u64);
37 | ^^^^
38 |
39 = note: this is required to use type `u64` with register class `kreg`
40
41 warning: formatting may not be suitable for sub-register argument
42 --> $DIR/type-check-3.rs:34:15
43 |
44 LL | asm!("{0} {0}", in(reg) 0i16);
45 | ^^^ ^^^ ---- for this argument
46 |
47 = note: `#[warn(asm_sub_register)]` on by default
48 = help: use the `x` modifier to have the register formatted as `ax`
49 = help: or use the `r` modifier to keep the default formatting of `rax`
50
51 warning: formatting may not be suitable for sub-register argument
52 --> $DIR/type-check-3.rs:36:15
53 |
54 LL | asm!("{0} {0:x}", in(reg) 0i16);
55 | ^^^ ---- for this argument
56 |
57 = help: use the `x` modifier to have the register formatted as `ax`
58 = help: or use the `r` modifier to keep the default formatting of `rax`
59
60 warning: formatting may not be suitable for sub-register argument
61 --> $DIR/type-check-3.rs:38:15
62 |
63 LL | asm!("{}", in(reg) 0i32);
64 | ^^ ---- for this argument
65 |
66 = help: use the `e` modifier to have the register formatted as `eax`
67 = help: or use the `r` modifier to keep the default formatting of `rax`
68
69 warning: formatting may not be suitable for sub-register argument
70 --> $DIR/type-check-3.rs:41:15
71 |
72 LL | asm!("{}", in(ymm_reg) 0i64);
73 | ^^ ---- for this argument
74 |
75 = help: use the `x` modifier to have the register formatted as `xmm0`
76 = help: or use the `y` modifier to keep the default formatting of `ymm0`
77
78 error: type `i8` cannot be used with this register class
79 --> $DIR/type-check-3.rs:52:28
80 |
81 LL | asm!("{}", in(reg) 0i8);
82 | ^^^
83 |
84 = note: register class `reg` supports these types: i16, i32, i64, f32, f64
85 = help: consider using the `reg_byte` register class instead
86
87 error: incompatible types for asm inout argument
88 --> $DIR/type-check-3.rs:64:33
89 |
90 LL | asm!("{:r}", inout(reg) 0u32 => val_f32);
91 | ^^^^ ^^^^^^^ type `f32`
92 | |
93 | type `u32`
94 |
95 = note: asm inout arguments must have the same type, unless they are both pointers or integers of the same size
96
97 error: incompatible types for asm inout argument
98 --> $DIR/type-check-3.rs:66:33
99 |
100 LL | asm!("{:r}", inout(reg) 0u32 => val_ptr);
101 | ^^^^ ^^^^^^^ type `*mut u8`
102 | |
103 | type `u32`
104 |
105 = note: asm inout arguments must have the same type, unless they are both pointers or integers of the same size
106
107 error: incompatible types for asm inout argument
108 --> $DIR/type-check-3.rs:68:33
109 |
110 LL | asm!("{:r}", inout(reg) main => val_u32);
111 | ^^^^ ^^^^^^^ type `u32`
112 | |
113 | type `fn()`
114 |
115 = note: asm inout arguments must have the same type, unless they are both pointers or integers of the same size
116
117 error: aborting due to 9 previous errors; 4 warnings emitted
118