<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/151877>151877</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
RVV assert in inline asm for tied constraints
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Rexicon226
</td>
</tr>
</table>
<pre>
```llvm
target datalayout = "e-m:e-p:64:64-i64:64-i128:128-n32:64-S128"
target triple = "riscv64-unknown-linux5.10.0-musl"
define i16 @foo() {
Entry:
%0 = call <2 x i8> asm "vadd.vv ${0}, ${1}, ${2}", "=&m,{x11},{x12}"(<2 x i8> zeroinitializer, <2 x i8> zeroinitializer)
ret i16 0
}
```
```
Assertion failed: ((OpInfo.isMultipleAlternative || (OpInfo.Type == InlineAsm::isInput)) && "Can only indirectify direct input operands!"), function visitInlineAsm, file SelectionDAGBuilder.cpp, line 9901.
```
https://llc.godbolt.org/z/Y8qj3nTdx
Should probably result in an error when selecting the constraint instead of an Assert.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx8U02P4ygQ_TXlC4qFwZ8HH5xksurDaqXp0Uh7JKacMEvAC9id9K9fgbunp7XSSBamqFfFe6-E8F5dDGIP1R6qYyaWcLWu_4p3NVrDWJ2drXz0UNPt03q9AR2CcBcMRIogtHjYJRDgRwKM4e4GfMDdDHyoy7Ts1M9NwVrgQ8HaneFsO3uOZ4x99AxOzRrf-znlx7Uud4v5x9gXs9PKLPcqL2hOd7fF660U6CBxUgaJKmoCJZ2shdi3I9DsgQ5fTHAP4BFICLCKpv6j0JoAPzByJ6oF_oUIf4u3rkLKfF0JsBKaPYXmCOzwFhWfIpYith0w4Edg9Q3YAZr9vXiDpv1PYPvpwld0VhkVlNDqFV3q89t8lyQ4DEkqjeKbY1zfJ7TZ8Ws4eI8uKGvIJJRGCXwgyZ32r_nJTDZX_s9Fh2j7oAM6I4JakUBzgCbKeod9e8xpLtG6J6OVwcHHaQMflH8y8xIiveg5q4HV0ZCDMMQa_SDKSOVwDGp6kG1HVKwgdkYnjPTAimRPFy2YFjMmwqvyKnzcFVNKI3lGjQlwHP7YL0pLdPk4zzEfoaTraJH_35RrCLOPhNkJ2EnrMb9YebY65NZdgJ1egZ3-bv_9wc03ed9Knq920ZLMzp7FWT-IQ7_oyJ0IQ9A568jLFQ3xGyNzIeGKZLTGByeUiUgfUEhip1ixjSLPZM9lxzuRYV80VcnKsu667NoL2o1ybFhZtWeksqwKWhXYNLSidVOwKVM9o6yiLeVFWxS8y9uuK7HsuKw4r8e2g5LiTSidx5cadWXK-wX7oirapsm0OKP26bUzZvCFpGx0vjpmro9Fu_Ny8VBSrXzwH22CChr7r9-_E5FERA9Umkx6NZN1JCiUv2j32eJ0_9n0iwrX5ZyP9pYmsL7_drOzP3AMwE6JkQd2eqO89uy_AAAA__8LVGOp">