; RUN: llvm-as < %s -o %t.bc ; RUN: llvm-spirv %t.bc -o %t.spv ; RUN: llvm-spirv -r %t.spv -o - | llvm-dis -o %t.ll ; RUN: llc -mtriple=i386-unknown-unknown -mcpu=core2 %t.ll -o %t -filetype=obj ; RUN: llvm-dwarfdump -debug-line %t | FileCheck %s ; RUN: llvm-spirv %t.bc -o %t.spv --spirv-debug-info-version=nonsemantic-shader-100 ; RUN: llvm-spirv -r %t.spv -o - | llvm-dis -o %t.ll ; RUN: llc -mtriple=i386-unknown-unknown -mcpu=core2 %t.ll -o %t -filetype=obj ; RUN: llvm-dwarfdump -debug-line %t | FileCheck %s ; RUN: llvm-spirv %t.bc -o %t.spv --spirv-debug-info-version=nonsemantic-shader-200 ; RUN: llvm-spirv -r %t.spv -o - | llvm-dis -o %t.ll ; RUN: llc -mtriple=i386-unknown-unknown -mcpu=core2 %t.ll -o %t -filetype=obj ; RUN: llvm-dwarfdump -debug-line %t | FileCheck %s target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-n8:16:32:64" target triple = "spir64-unknown-unknown" ; ; Generated from: ; ; #1 void foo(int); ; #2 void baz(int i) { ; #3 if (i) {foo(i+1);/*discriminator 1*/} ; #4 } ; ; The intent is to test discriminator 1 generated for all instructions in ; the taken branch. ; Function Attrs: uwtable define void @_Z3bazi(i32) #0 !dbg !6 { %2 = alloca i32, align 4 store i32 %0, ptr %2, align 4 call void @llvm.dbg.declare(metadata ptr %2, metadata !10, metadata !11), !dbg !12 %3 = load i32, ptr %2, align 4, !dbg !13 %4 = icmp ne i32 %3, 0, !dbg !13 br i1 %4, label %5, label %8, !dbg !15 ;