<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/80836>80836</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Floating point exception with loop-vectorize
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
TatyanaDoubts
</td>
</tr>
</table>
<pre>
Run opt with -passes=loop-vectorize
https://godbolt.org/z/s3PWY3vhE
Test.ll
```
; ModuleID = './reduced.ll'
source_filename = "./reduced.ll"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128-ni:1-p2:32:8:8:32-ni:2"
target triple = "x86_64-unknown-linux-gnu"
define ptr addrspace(1) @wombat(i64 %arg, ptr addrspace(1) %arg1) gc "statepoint-example" {
bb:
br label %bb2
bb2: ; preds = %bb4, %bb
br label %bb3
bb3: ; preds = %bb3, %bb2
%phi = phi i64 [ 0, %bb2 ], [ %add, %bb3 ]
%add = add i64 %phi, 1
%load = load i8, ptr addrspace(1) %arg1, align 1
%shl = shl i64 0, 0
store i16 0, ptr addrspace(1) null, align 2
%icmp = icmp ult i64 %phi, %arg
br i1 %icmp, label %bb3, label %bb4
bb4: ; preds = %bb3
br i1 false, label %bb5, label %bb2, !prof !0
bb5: ; preds = %bb4
ret ptr addrspace(1) null
}
!0 = !{!"branch_weights", i32 1, i32 -1}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVV2P6yYQ_TX4BTnCg7_y4IfkppH6UKlqr1T1aYXtsU1LjAV4s3t_fQV2knW026qrDcwwZw4HxoCwVvYjYkWyI8lOkZjdoE31Xbh3MYqTnmtno1q379Vv80j15OhVuoHGk7AWLeEnpfUUv2LjtJE_kBJ2IuywtINzkyX8QOBM4NzrttbK7bTpCZx_EDhb_usff_LX4aePSd_Rup1S61DO1v_F5Uf6i25nhT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