brintos

brintos / llvm-project-archived public Read only

0
0
Text · 622 B · 0eaf926 Raw
16 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 42; RUN: opt -S -passes=instcombine < %s | FileCheck %s3 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, zeroinitializer14  ret <vscale x 2 x i1> %ret15}16