brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 880514a Raw
46 lines · plain
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s2 3; Check that we don't generate an invalid packet with too many instructions4; due to a store that has a must-extend operand.5 6; CHECK: CuSuiteAdd.exit.us7; CHECK: {8; CHECK-NOT: call abort9; CHECK: memw(##0)10; CHECK: memw(r{{[0-9+]}}<<#2+##4)11; CHECK: }12 13%struct.CuTest.1.28.31.37.40.43.52.55.67.85.111 = type { ptr, ptr, i32, i32, ptr, ptr }14%struct.CuSuite.2.29.32.38.41.44.53.56.68.86.112 = type { i32, [1024 x ptr], i32 }15 16@__func__.CuSuiteAdd = external unnamed_addr constant [11 x i8], align 817@.str24 = external unnamed_addr constant [140 x i8], align 818 19declare void @_Assert()20 21define void @CuSuiteAddSuite() nounwind null_pointer_is_valid {22entry:23  br i1 undef, label %for.body.us, label %for.end24 25for.body.us:                                      ; preds = %entry26  %0 = load ptr, ptr null, align 427  %1 = load i32, ptr undef, align 428  %cmp.i.us = icmp slt i32 %1, 102429  br i1 %cmp.i.us, label %CuSuiteAdd.exit.us, label %cond.false6.i.us30 31cond.false6.i.us:                                 ; preds = %for.body.us32  tail call void @_Assert() nounwind33  unreachable34 35CuSuiteAdd.exit.us:                               ; preds = %for.body.us36  %arrayidx.i.us = getelementptr inbounds %struct.CuSuite.2.29.32.38.41.44.53.56.68.86.112, ptr null, i32 0, i32 1, i32 %137  store ptr %0, ptr %arrayidx.i.us, align 438  call void @llvm.trap()39  unreachable40 41for.end:                                          ; preds = %entry42  ret void43}44 45declare void @llvm.trap() noreturn nounwind46