<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - masked gather broken on mips"
href="https://bugs.llvm.org/show_bug.cgi?id=38810">38810</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>masked gather broken on mips
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>gonzalobg88@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dragan.mladjenovic@rt-rk.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>declare <8 x float> @llvm.masked.gather.v8f32.v8p0f32(
<8 x float*>, i32, <8 x i1>, <8 x float>
)
define <8 x float> @foo(<8 x float*>, i32, <8 x i1>, <8 x float>) {
%5 = tail call <8 x float> @llvm.masked.gather.v8f32.v8p0f32(
<8 x float*> %0, i32 %1, <8 x i1> %2, <8 x float> %3
)
ret <8 x float> %5
}
errors with (<a href="https://gcc.godbolt.org/z/erTVaQ">https://gcc.godbolt.org/z/erTVaQ</a>)
huge alignment values are unsupported
%Load0 = load float, float* %Ptr0, align 3221225472
huge alignment values are unsupported
%Load1 = load float, float* %Ptr1, align 3221225472
huge alignment values are unsupported
%Load2 = load float, float* %Ptr2, align 3221225472
huge alignment values are unsupported
%Load3 = load float, float* %Ptr3, align 3221225472
huge alignment values are unsupported
%Load4 = load float, float* %Ptr4, align 3221225472
huge alignment values are unsupported
%Load5 = load float, float* %Ptr5, align 3221225472
huge alignment values are unsupported
%Load6 = load float, float* %Ptr6, align 3221225472
huge alignment values are unsupported
%Load7 = load float, float* %Ptr7, align 3221225472
LLVM ERROR: Broken function found, compilation aborted!
Compiler returned: 1
---
A similar error is produced for `v16f32` (<a href="https://gcc.godbolt.org/z/44tbCt">https://gcc.godbolt.org/z/44tbCt</a>). I
tried the masked scatter instruction for both v8f32 and v16f32 and it seems to
be working properly (<a href="https://gcc.godbolt.org/z/GEyJ0G">https://gcc.godbolt.org/z/GEyJ0G</a>).</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>