1 ; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- -O1 | FileCheck %s
2 ; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64-- | FileCheck --check-prefix=CHECK-OPT %s
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 }
10 %ttype = alloca i32, align 4 ; <i32*> [#uses=1]
11 %regs = alloca [1024 x %struct.__db_region], align 16 ; <[1024 x %struct.__db_region]*> [#uses=0]
12 %tmp = load i32, i32* %ttype, align 4 ; <i32> [#uses=1]
13 %tmp1 = call i32 (...) @bork( i32 %tmp ) ; <i32> [#uses=0]
24 define signext i32 @test(i32* noalias nocapture readonly %b, i32 signext %n) {
26 %idxprom = sext i32 %n to i64
27 %arrayidx = getelementptr inbounds i32, i32* %b, i64 %idxprom
28 %0 = load i32, i32* %arrayidx, align 4
29 %mul = mul nsw i32 %0, 7
39 declare i32 @bork(...)