brintos

brintos / llvm-project-archived public Read only

0
0
Text · 939 B · cf5fc5e Raw
22 lines · plain
1; RUN: opt -S -passes=instcombine < %s | FileCheck %s2 3target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"4target triple = "aarch64-unknown-linux-gnu"5 6; This test checks that instcombine does not crash while invoking7; maskIsAllOneOrUndef, maskIsAllZeroOrUndef, or possiblyDemandedEltsInMask.8 9; CHECK-LABEL: novel_algorithm10; CHECK: unreachable11define void @novel_algorithm() {12entry:13  %a = call <vscale x 16 x i8> @llvm.masked.load.nxv16i8.p0(ptr undef, i32 1, <vscale x 16 x i1> splat (i1 true), <vscale x 16 x i8> undef)14  %b = add <vscale x 16 x i8> undef, %a15  call void @llvm.masked.store.nxv16i8.p0(<vscale x 16 x i8> %b, ptr undef, i32 1, <vscale x 16 x i1> splat (i1 true))16  unreachable17}18 19declare <vscale x 16 x i8> @llvm.masked.load.nxv16i8.p0(ptr, i32 immarg, <vscale x 16 x i1>, <vscale x 16 x i8>)20 21declare void @llvm.masked.store.nxv16i8.p0(<vscale x 16 x i8>, ptr, i32 immarg, <vscale x 16 x i1>)22