brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.2 KiB · 1f4d64b Raw
67 lines · plain
1; RUN: llc -mtriple=hexagon < %s2; REQUIRES: asserts3 4; Validates correct operand order for absolute-set stores.5 6%s.0 = type { %s.1, %s.2, %s.3, %s.3, %s.4, [8 x i8] }7%s.1 = type { i8 }8%s.2 = type { i8 }9%s.3 = type { i32 }10%s.4 = type { i32, i32, i32 }11 12; Function Attrs: nounwind ssp13define void @f0(ptr nocapture readonly %a0, i32 %a1) #0 {14b0:15  %v1 = load i8, ptr %a0, align 116  %v2 = and i32 %a1, 117  %v3 = icmp eq i32 %v2, 018  br i1 %v3, label %b4, label %b119 20b1:                                               ; preds = %b021  %v4 = getelementptr inbounds %s.0, ptr %a0, i32 0, i32 1, i32 022  %v5 = load i8, ptr %v4, align 123  %v6 = icmp eq i8 %v5, 024  br i1 %v6, label %b3, label %b225 26b2:                                               ; preds = %b127  %v7 = getelementptr %s.0, ptr %a0, i32 0, i32 2, i32 028  %v8 = load i32, ptr %v7, align 429  store volatile i32 %v8, ptr inttoptr (i32 -318766672 to ptr), align 1630  %v9 = getelementptr %s.0, ptr %a0, i32 0, i32 3, i32 031  %v10 = load i32, ptr %v9, align 432  store volatile i32 %v10, ptr inttoptr (i32 -318766672 to ptr), align 1633  br label %b334 35b3:                                               ; preds = %b2, %b136  %v11 = getelementptr inbounds %s.0, ptr %a0, i32 0, i32 4, i32 037  %v12 = load i32, ptr %v11, align 438  %v13 = zext i8 %v1 to i3239  %v14 = mul nsw i32 %v13, 6440  %v15 = add nsw i32 %v14, -31811168441  %v16 = inttoptr i32 %v15 to ptr42  store volatile i32 %v12, ptr %v16, align 443  %v17 = shl i32 1, %v1344  %v18 = load volatile i32, ptr inttoptr (i32 -318111596 to ptr), align 445  %v19 = and i32 %v17, 346  %v20 = xor i32 %v19, 347  %v21 = and i32 %v18, %v2048  %v22 = getelementptr inbounds %s.0, ptr %a0, i32 0, i32 4, i32 149  %v23 = load i32, ptr %v22, align 450  %v24 = and i32 %v23, 151  %v25 = shl i32 %v24, %v1352  %v26 = or i32 %v25, %v2153  store volatile i32 %v26, ptr inttoptr (i32 -318111596 to ptr), align 454  %v27 = getelementptr inbounds %s.0, ptr %a0, i32 0, i32 4, i32 255  %v28 = load i32, ptr %v27, align 456  %v29 = mul nsw i32 %v13, 457  %v30 = add nsw i32 %v29, -31811159258  %v31 = inttoptr i32 %v30 to ptr59  store volatile i32 %v28, ptr %v31, align 460  br label %b461 62b4:                                               ; preds = %b3, %b063  ret void64}65 66attributes #0 = { nounwind ssp }67