1 error: type `i128` cannot be used with this register class
2 --> $DIR/type-check-3.rs:14:28
4 LL | asm!("{}", in(reg) 0i128);
7 = note: register class `reg` supports these types: i16, i32, i64, f32, f64
9 error: type `__m128` cannot be used with this register class
10 --> $DIR/type-check-3.rs:16:28
12 LL | asm!("{}", in(reg) _mm_setzero_ps());
15 = note: register class `reg` supports these types: i16, i32, i64, f32, f64
17 error: type `__m256` cannot be used with this register class
18 --> $DIR/type-check-3.rs:18:28
20 LL | asm!("{}", in(reg) _mm256_setzero_ps());
23 = note: register class `reg` supports these types: i16, i32, i64, f32, f64
25 error: type `u8` cannot be used with this register class
26 --> $DIR/type-check-3.rs:20:32
28 LL | asm!("{}", in(xmm_reg) 0u8);
31 = note: register class `xmm_reg` supports these types: i32, i64, f32, f64, i8x16, i16x8, i32x4, i64x2, f32x4, f64x2
33 error: `avx512bw` target feature is not enabled
34 --> $DIR/type-check-3.rs:29:29
36 LL | asm!("{}", in(kreg) 0u64);
39 = note: this is required to use type `u64` with register class `kreg`
41 warning: formatting may not be suitable for sub-register argument
42 --> $DIR/type-check-3.rs:34:15
44 LL | asm!("{0} {0}", in(reg) 0i16);
45 | ^^^ ^^^ ---- for this argument
47 = note: `#[warn(asm_sub_register)]` on by default
48 = help: use `{0:x}` to have the register formatted as `ax`
49 = help: or use `{0:r}` to keep the default formatting of `rax`
51 warning: formatting may not be suitable for sub-register argument
52 --> $DIR/type-check-3.rs:36:15
54 LL | asm!("{0} {0:x}", in(reg) 0i16);
55 | ^^^ ---- for this argument
57 = help: use `{0:x}` to have the register formatted as `ax`
58 = help: or use `{0:r}` to keep the default formatting of `rax`
60 warning: formatting may not be suitable for sub-register argument
61 --> $DIR/type-check-3.rs:38:15
63 LL | asm!("{}", in(reg) 0i32);
64 | ^^ ---- for this argument
66 = help: use `{0:e}` to have the register formatted as `eax`
67 = help: or use `{0:r}` to keep the default formatting of `rax`
69 warning: formatting may not be suitable for sub-register argument
70 --> $DIR/type-check-3.rs:41:15
72 LL | asm!("{}", in(ymm_reg) 0i64);
73 | ^^ ---- for this argument
75 = help: use `{0:x}` to have the register formatted as `xmm0`
76 = help: or use `{0:y}` to keep the default formatting of `ymm0`
78 error: type `i8` cannot be used with this register class
79 --> $DIR/type-check-3.rs:52:28
81 LL | asm!("{}", in(reg) 0i8);
84 = note: register class `reg` supports these types: i16, i32, i64, f32, f64
85 = help: consider using the `reg_byte` register class instead
87 error: incompatible types for asm inout argument
88 --> $DIR/type-check-3.rs:64:33
90 LL | asm!("{:r}", inout(reg) 0u32 => val_f32);
91 | ^^^^ ^^^^^^^ type `f32`
95 = note: asm inout arguments must have the same type, unless they are both pointers or integers of the same size
97 error: incompatible types for asm inout argument
98 --> $DIR/type-check-3.rs:66:33
100 LL | asm!("{:r}", inout(reg) 0u32 => val_ptr);
101 | ^^^^ ^^^^^^^ type `*mut u8`
105 = note: asm inout arguments must have the same type, unless they are both pointers or integers of the same size
107 error: incompatible types for asm inout argument
108 --> $DIR/type-check-3.rs:68:33
110 LL | asm!("{:r}", inout(reg) main => val_u32);
111 | ^^^^ ^^^^^^^ type `u32`
115 = note: asm inout arguments must have the same type, unless they are both pointers or integers of the same size
117 error: aborting due to 9 previous errors; 4 warnings emitted