xref: /llvm-project/llvm/test/Transforms/InstCombine/pr83931.ll (revision 56c091ea7106507b36015297ee9005c9d5fab0bf)
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4
2; RUN: opt -S -passes=instcombine < %s | FileCheck %s
3
4define <vscale x 2 x i1> @dont_crash(<vscale x 2 x i64> %x) {
5; CHECK-LABEL: define <vscale x 2 x i1> @dont_crash(
6; CHECK-SAME: <vscale x 2 x i64> [[X:%.*]]) {
7; CHECK-NEXT:  entry:
8; CHECK-NEXT:    [[RET:%.*]] = icmp sgt <vscale x 2 x i64> [[X]], splat (i64 -309383)
9; CHECK-NEXT:    ret <vscale x 2 x i1> [[RET]]
10;
11entry:
12  %div = sdiv <vscale x 2 x i64> %x, splat (i64 309383)
13  %ret = icmp sge <vscale x 2 x i64> %div, zeroinitializer
14  ret <vscale x 2 x i1> %ret
15}
16