brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.0 KiB · 436a233 Raw
41 lines · plain
1; RUN: llc -mtriple=hexagon -mcpu=hexagonv75 -mattr=+hvxv75,+hvx-length64b,-small-data < %s | FileCheck %s2 3; Test that the compiler generates code, and doesn't crash, when the compiler4; creates a DoubleReg value with an IntLow8Reg value. The BitTracker pass5; needs to handle this register class.6 7; CHECK: [[REG:r[0-9]+:[0-9]+]] = combine(#33,#32)8; CHECK: memd({{.*}}) = [[REG]]9 10@out = external dso_local global [100 x i32], align 51211@in55 = external dso_local global [55 x i32], align 25612@.str.3 = external dso_local unnamed_addr constant [29 x i8], align 113 14define dso_local void @main(i1 %cond) local_unnamed_addr #0 {15entry:16  br label %for.body.i19817 18for.body.i198:19  br i1 %cond, label %for.body34.preheader, label %for.body.i19820 21for.body34.preheader:22  %wide.load269.5 = load <16 x i32>, <16 x i32>* bitcast (i32* getelementptr inbounds ([100 x i32], [100 x i32]* @out, i32 0, i32 80) to <16 x i32>*), align 6423  %0 = add nsw <16 x i32> %wide.load269.5, zeroinitializer24  %rdx.shuf270 = shufflevector <16 x i32> %0, <16 x i32> undef, <16 x i32> <i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef>25  %bin.rdx271 = add <16 x i32> %0, %rdx.shuf27026  %bin.rdx273 = add <16 x i32> %bin.rdx271, zeroinitializer27  %bin.rdx275 = add <16 x i32> %bin.rdx273, zeroinitializer28  %bin.rdx277 = add <16 x i32> %bin.rdx275, zeroinitializer29  %1 = extractelement <16 x i32> %bin.rdx277, i32 030  %add45 = add nsw i32 0, %131  %add45.1 = add nsw i32 0, %add4532  %add45.2 = add nsw i32 0, %add45.133  %add45.3 = add nsw i32 0, %add45.234  call void (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i32 0, i32 0), i32 %add45.3) #235  store i32 32, i32* getelementptr inbounds ([55 x i32], [55 x i32]* @in55, i32 0, i32 32), align 12836  store i32 33, i32* getelementptr inbounds ([55 x i32], [55 x i32]* @in55, i32 0, i32 33), align 437  ret void38}39 40declare dso_local void @printf(i8*, ...) local_unnamed_addr #141