brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 6bc14f3 Raw
35 lines · plain
1; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr72 3define void @test1(i1 %x, i8 %x2, ptr %x3, i64 %x4) {4entry:5  %tmp3 = and i64 %x4, 166  %bf.shl = trunc i64 %tmp3 to i87  %bf.clear = and i8 %x2, -178  %bf.set = or i8 %bf.shl, %bf.clear9  br i1 %x, label %if.then, label %if.end10 11if.then:12  ret void13 14if.end:15  store i8 %bf.set, ptr %x3, align 416  ret void17}18 19; A BUILD_VECTOR of 1 element caused a crash in combineBVOfConsecutiveLoads()20; Test that this is no longer the case21define signext i32 @test2() {22entry:23  %retval = alloca i32, align 424  %__a = alloca i128, align 1625  %b = alloca i64, align 826  store i32 0, ptr %retval, align 427  %0 = load i128, ptr %__a, align 1628  %splat.splatinsert = insertelement <1 x i128> undef, i128 %0, i32 029  %splat.splat = shufflevector <1 x i128> %splat.splatinsert, <1 x i128> undef, <1 x i32> zeroinitializer30  %1 = bitcast <1 x i128> %splat.splat to <2 x i64>31  %2 = extractelement <2 x i64> %1, i32 032  store i64 %2, ptr %b, align 833  ret i32 034}35