brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.7 KiB · 2970269 Raw
92 lines · plain
1; RUN: llc -mtriple=hexagon -verify-machineinstrs < %s2; REQUIRES: asserts3 4; Test that we constrain the new register operands for instructions5; to be the same as the register class of the original instruction.6; In this case, the register class of a valign scalar operand changed7; from IntRegsLow8 to IntRegs, which is incorrect.8 9; Function Attrs: nounwind10define void @f0() #0 {11b0:12  br i1 undef, label %b1, label %b613 14b1:                                               ; preds = %b015  br label %b216 17b2:                                               ; preds = %b4, %b118  %v0 = phi <16 x i32> [ undef, %b1 ], [ %v17, %b4 ]19  br label %b320 21b3:                                               ; preds = %b3, %b222  %v1 = phi i32 [ 0, %b2 ], [ %v19, %b3 ]23  %v2 = phi i32 [ undef, %b2 ], [ %v18, %b3 ]24  %v3 = phi <16 x i32> [ %v0, %b2 ], [ %v17, %b3 ]25  %v4 = tail call i32 @llvm.hexagon.A2.combine.ll(i32 0, i32 0)26  %v5 = tail call <16 x i32> @llvm.hexagon.V6.vlalignb(<16 x i32> undef, <16 x i32> undef, i32 %v2)27  %v6 = tail call <16 x i32> @llvm.hexagon.V6.vabsdiffuh(<16 x i32> %v5, <16 x i32> undef)28  %v7 = tail call <32 x i32> @llvm.hexagon.V6.vmpyuhv(<16 x i32> %v6, <16 x i32> %v6)29  %v8 = tail call <16 x i32> @llvm.hexagon.V6.hi(<32 x i32> %v7)30  %v9 = tail call <16 x i32> @llvm.hexagon.V6.vlsrw(<16 x i32> %v8, i32 17)31  %v10 = tail call <16 x i32> @llvm.hexagon.V6.vmpyiwb(<16 x i32> %v9, i32 151587081)32  %v11 = tail call <16 x i32> @llvm.hexagon.V6.vsatwh(<16 x i32> %v10, <16 x i32> undef)33  %v12 = tail call <16 x i32> @llvm.hexagon.V6.vsubuhsat(<16 x i32> undef, <16 x i32> %v11)34  %v13 = tail call <16 x i32> @llvm.hexagon.V6.vmaxh(<16 x i32> %v12, <16 x i32> undef)35  %v14 = tail call <16 x i32> @llvm.hexagon.V6.vmpyiwh(<16 x i32> %v13, i32 %v4)36  %v15 = tail call <16 x i32> @llvm.hexagon.V6.vmpyiwh(<16 x i32> undef, i32 %v4)37  %v16 = tail call <16 x i32> @llvm.hexagon.V6.vaddh(<16 x i32> %v14, <16 x i32> %v15)38  %v17 = tail call <16 x i32> @llvm.hexagon.V6.vaddh(<16 x i32> %v3, <16 x i32> %v16)39  %v18 = add nsw i32 %v2, -240  %v19 = add nsw i32 %v1, 141  %v20 = icmp eq i32 %v19, 242  br i1 %v20, label %b4, label %b343 44b4:                                               ; preds = %b345  br i1 undef, label %b5, label %b246 47b5:                                               ; preds = %b448  unreachable49 50b6:                                               ; preds = %b051  ret void52}53 54; Function Attrs: nounwind readnone55declare i32 @llvm.hexagon.A2.combine.ll(i32, i32) #156 57; Function Attrs: nounwind readnone58declare <16 x i32> @llvm.hexagon.V6.hi(<32 x i32>) #159 60; Function Attrs: nounwind readnone61declare <16 x i32> @llvm.hexagon.V6.vlalignb(<16 x i32>, <16 x i32>, i32) #162 63; Function Attrs: nounwind readnone64declare <16 x i32> @llvm.hexagon.V6.vabsdiffuh(<16 x i32>, <16 x i32>) #165 66; Function Attrs: nounwind readnone67declare <32 x i32> @llvm.hexagon.V6.vmpyuhv(<16 x i32>, <16 x i32>) #168 69; Function Attrs: nounwind readnone70declare <16 x i32> @llvm.hexagon.V6.vlsrw(<16 x i32>, i32) #171 72; Function Attrs: nounwind readnone73declare <16 x i32> @llvm.hexagon.V6.vsatwh(<16 x i32>, <16 x i32>) #174 75; Function Attrs: nounwind readnone76declare <16 x i32> @llvm.hexagon.V6.vmpyiwb(<16 x i32>, i32) #177 78; Function Attrs: nounwind readnone79declare <16 x i32> @llvm.hexagon.V6.vsubuhsat(<16 x i32>, <16 x i32>) #180 81; Function Attrs: nounwind readnone82declare <16 x i32> @llvm.hexagon.V6.vmaxh(<16 x i32>, <16 x i32>) #183 84; Function Attrs: nounwind readnone85declare <16 x i32> @llvm.hexagon.V6.vmpyiwh(<16 x i32>, i32) #186 87; Function Attrs: nounwind readnone88declare <16 x i32> @llvm.hexagon.V6.vaddh(<16 x i32>, <16 x i32>) #189 90attributes #0 = { nounwind "target-cpu"="hexagonv60" "target-features"="+hvx,+hvx-length64b" }91attributes #1 = { nounwind readnone }92