fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: invalid register class `foo`: unknown register class 2 --> $DIR/bad-reg.rs:14:20 3 | 4LL | asm!("{}", in(foo) foo); 5 | ^^^^^^^^^^^ 6 7error: invalid register `foo`: unknown register 8 --> $DIR/bad-reg.rs:16:18 9 | 10LL | asm!("", in("foo") foo); 11 | ^^^^^^^^^^^^^ 12 13error: invalid asm template modifier for this register class 14 --> $DIR/bad-reg.rs:18:15 15 | 16LL | asm!("{:z}", in(reg) foo); 17 | ^^^^ ----------- argument 18 | | 19 | template modifier 20 | 21 = note: the `reg` register class supports the following template modifiers: `w`, `x` 22 23error: invalid asm template modifier for this register class 24 --> $DIR/bad-reg.rs:20:15 25 | 26LL | asm!("{:r}", in(vreg) foo); 27 | ^^^^ ------------ argument 28 | | 29 | template modifier 30 | 31 = note: the `vreg` register class supports the following template modifiers: `b`, `h`, `s`, `d`, `q`, `v` 32 33error: invalid asm template modifier for this register class 34 --> $DIR/bad-reg.rs:22:15 35 | 36LL | asm!("{:r}", in(vreg_low16) foo); 37 | ^^^^ ------------------ argument 38 | | 39 | template modifier 40 | 41 = note: the `vreg_low16` register class supports the following template modifiers: `b`, `h`, `s`, `d`, `q`, `v` 42 43error: asm template modifiers are not allowed for `const` arguments 44 --> $DIR/bad-reg.rs:24:15 45 | 46LL | asm!("{:a}", const 0); 47 | ^^^^ ------- argument 48 | | 49 | template modifier 50 51error: asm template modifiers are not allowed for `sym` arguments 52 --> $DIR/bad-reg.rs:26:15 53 | 54LL | asm!("{:a}", sym main); 55 | ^^^^ -------- argument 56 | | 57 | template modifier 58 59error: invalid register `x29`: the frame pointer cannot be used as an operand for inline asm 60 --> $DIR/bad-reg.rs:28:18 61 | 62LL | asm!("", in("x29") foo); 63 | ^^^^^^^^^^^^^ 64 65error: invalid register `sp`: the stack pointer cannot be used as an operand for inline asm 66 --> $DIR/bad-reg.rs:30:18 67 | 68LL | asm!("", in("sp") foo); 69 | ^^^^^^^^^^^^ 70 71error: invalid register `xzr`: the zero register cannot be used as an operand for inline asm 72 --> $DIR/bad-reg.rs:32:18 73 | 74LL | asm!("", in("xzr") foo); 75 | ^^^^^^^^^^^^^ 76 77error: invalid register `x19`: x19 is used internally by LLVM and cannot be used as an operand for inline asm 78 --> $DIR/bad-reg.rs:34:18 79 | 80LL | asm!("", in("x19") foo); 81 | ^^^^^^^^^^^^^ 82 83error: register class `preg` can only be used as a clobber, not as an input or output 84 --> $DIR/bad-reg.rs:37:18 85 | 86LL | asm!("", in("p0") foo); 87 | ^^^^^^^^^^^^ 88 89error: register class `preg` can only be used as a clobber, not as an input or output 90 --> $DIR/bad-reg.rs:41:20 91 | 92LL | asm!("{}", in(preg) foo); 93 | ^^^^^^^^^^^^ 94 95error: register class `preg` can only be used as a clobber, not as an input or output 96 --> $DIR/bad-reg.rs:44:20 97 | 98LL | asm!("{}", out(preg) _); 99 | ^^^^^^^^^^^ 100 101error: register `x0` conflicts with register `x0` 102 --> $DIR/bad-reg.rs:50:32 103 | 104LL | asm!("", in("x0") foo, in("w0") bar); 105 | ------------ ^^^^^^^^^^^^ register `x0` 106 | | 107 | register `x0` 108 109error: register `x0` conflicts with register `x0` 110 --> $DIR/bad-reg.rs:52:32 111 | 112LL | asm!("", in("x0") foo, out("x0") bar); 113 | ------------ ^^^^^^^^^^^^^ register `x0` 114 | | 115 | register `x0` 116 | 117help: use `lateout` instead of `out` to avoid conflict 118 --> $DIR/bad-reg.rs:52:18 119 | 120LL | asm!("", in("x0") foo, out("x0") bar); 121 | ^^^^^^^^^^^^ 122 123error: register `v0` conflicts with register `v0` 124 --> $DIR/bad-reg.rs:55:32 125 | 126LL | asm!("", in("v0") foo, in("q0") bar); 127 | ------------ ^^^^^^^^^^^^ register `v0` 128 | | 129 | register `v0` 130 131error: register `v0` conflicts with register `v0` 132 --> $DIR/bad-reg.rs:57:32 133 | 134LL | asm!("", in("v0") foo, out("q0") bar); 135 | ------------ ^^^^^^^^^^^^^ register `v0` 136 | | 137 | register `v0` 138 | 139help: use `lateout` instead of `out` to avoid conflict 140 --> $DIR/bad-reg.rs:57:18 141 | 142LL | asm!("", in("v0") foo, out("q0") bar); 143 | ^^^^^^^^^^^^ 144 145error: type `i32` cannot be used with this register class 146 --> $DIR/bad-reg.rs:37:27 147 | 148LL | asm!("", in("p0") foo); 149 | ^^^ 150 | 151 = note: register class `preg` supports these types: 152 153error: type `i32` cannot be used with this register class 154 --> $DIR/bad-reg.rs:41:29 155 | 156LL | asm!("{}", in(preg) foo); 157 | ^^^ 158 | 159 = note: register class `preg` supports these types: 160 161error: aborting due to 20 previous errors 162