brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 007c611 Raw
40 lines · plain
1; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- -O1 | FileCheck %s2; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- | FileCheck --check-prefix=CHECK-OPT  %s3 4        %struct.__db_region = type { %struct.__mutex_t, [4 x i8], %struct.anon, i32, [1 x i32] }5        %struct.__mutex_t = type { i32 }6        %struct.anon = type { i64, i64 }7 8define void @foo() {9entry:10        %ttype = alloca i32, align 4            ; <ptr> [#uses=1]11        %regs = alloca [1024 x %struct.__db_region], align 16           ; <ptr> [#uses=0]12        %tmp = load i32, ptr %ttype, align 4                ; <i32> [#uses=1]13        %tmp1 = call i32 (...) @bork( i32 %tmp )               ; <i32> [#uses=0]14        ret void15 16; CHECK: @foo17; CHECK: lwzx18; CHECK: blr19; CHECK-OPT: @foo20; CHECK-OPT: lwz21; CHECK-OPT: blr22}23 24define signext i32 @test(ptr noalias nocapture readonly %b, i32 signext %n)  {25entry:26  %idxprom = sext i32 %n to i6427  %arrayidx = getelementptr inbounds i32, ptr %b, i64 %idxprom28  %0 = load i32, ptr %arrayidx, align 429  %mul = mul nsw i32 %0, 730  ret i32 %mul31 32; CHECK-OPT: @test33; CHECK-OPT: lwzx34; CHECK-OPT: blr35 36}37 38 39declare i32 @bork(...)40