54 lines · plain
1; RUN: llvm-reduce -j=1 --abort-on-invalid-reduction \2; RUN: --delta-passes=operands-zero \3; RUN: -o %t.reduced.ll %s \4; RUN: --test=%python --test-arg %p/Inputs/llvm-as-and-filecheck.py \5; RUN: --test-arg llvm-as \6; RUN: --test-arg FileCheck --test-arg --check-prefix=INTERESTING \7; RUN: --test-arg %s8 9; Check if the final output really parses10; RUN: llvm-as -o /dev/null %t.reduced.ll11; RUN: FileCheck --check-prefix=RESULT %s < %t.reduced.ll12 13 14; RESULT-LABEL: define void @kernel_ocl_path_trace_direct_lighting(15define void @kernel_ocl_path_trace_direct_lighting(i1 %cond.i, i1 %cmp5.i.i, i32 %arg) {16; INTERESTING: entry:17; INTERESTING: 018; INTERESTING: 019; INTERESTING: %cmp5.i.i2 = icmp slt i32 {{[0-9]+}}, 020entry:21 %add_zero_a = add i32 %arg, 022 %load1.i1 = load i32, ptr addrspace(1) null, align 423 %add_zero_b = add i32 %arg, 024 %cmp5.i.i2 = icmp slt i32 1, 025 br i1 %cond.i, label %if.end13.i.i, label %if.then6.i.i26 27; INTERESTING: if.then6.i.i:28; INTERESTING: %cond.i4 = icmp eq i32 %load0.i, 029if.then6.i.i:30 %load0.i = load i32, ptr addrspace(4) null, align 431 %cond.i4 = icmp eq i32 %load0.i, 032 %extractVec358.i.i = insertelement <4 x float> zeroinitializer, float 1.000000e+00, i64 033 br i1 %cmp5.i.i, label %if.end13.i.i, label %kernel_direct_lighting.exit34 35if.end13.i.i:36 br i1 false, label %if.then263.i.i, label %if.end273.i.i37 38; INTERESTING: if.then263.i.i:39; INTERESTING-NEXT: i32 040if.then263.i.i:41 %extractVec72.i.i.i11 = shufflevector <3 x float> zeroinitializer, <3 x float> zeroinitializer, <4 x i32> <i32 0, i32 1, i32 2, i32 poison>42 br i1 %cond.i, label %if.end273.i.i, label %kernel_direct_lighting.exit43 44; INTERESTING: if.end273.i.i:45if.end273.i.i:46 br label %kernel_direct_lighting.exit47 48kernel_direct_lighting.exit:49 ret void50}51 52; FIXME: Should probably fix test to use a global address53; RESULT-NOT: uselistorder54