brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 544cb35 Raw
47 lines · plain
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s2 3; Test that the compiler does not generate an invalid packet with three4; instructions that each requires slot 2 or 3. The specification for5; PS_call_nr was incorrect, which allowed that instrution to go in any slot.6 7; CHECK: extractu8; CHECK: extractu9; CHECK: {10; CHECK: call11 12%s.0 = type <{ ptr, ptr, i16, i8, i8, i8 }>13 14@g0 = external constant %s.0, section ".rodata.trace", align 115 16define void @f0() local_unnamed_addr {17b0:18  %v0 = load i32, ptr undef, align 419  %v1 = trunc i32 %v0 to i220  switch i2 %v1, label %b4 [21    i2 1, label %b122    i2 -1, label %b223    i2 -2, label %b224    i2 0, label %b325  ]26 27b1:                                               ; preds = %b028  unreachable29 30b2:                                               ; preds = %b0, %b031  %v2 = load i32, ptr undef, align 432  %v3 = lshr i32 %v2, 1433  %v4 = and i32 %v3, 204734  %v5 = lshr i32 %v2, 335  %v6 = and i32 %v5, 204736  tail call void @f1(ptr nonnull @g0, i32 %v6, i32 %v4, i32 0, i32 0)37  unreachable38 39b3:                                               ; preds = %b040  ret void41 42b4:                                               ; preds = %b043  unreachable44}45 46declare void @f1(ptr, i32, i32, i32, i32) local_unnamed_addr47