1*3dc413e2SYashwant Singh; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2 2*3dc413e2SYashwant Singh; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx908 < %s | FileCheck -check-prefix=GCN %s 3*3dc413e2SYashwant Singh 4*3dc413e2SYashwant Singhdeclare void @llvm.dbg.value(metadata, metadata, metadata) #0 5*3dc413e2SYashwant Singh 6*3dc413e2SYashwant Singhdefine void @__omp_offloading_35_36570d3__ZN6openmc31process_advance_particle_eventsEv_l252_debug___omp_outlined_debug___omp_outlined(i1 %arg) { 7*3dc413e2SYashwant Singh; GCN-LABEL: __omp_offloading_35_36570d3__ZN6openmc31process_advance_particle_eventsEv_l252_debug___omp_outlined_debug___omp_outlined: 8*3dc413e2SYashwant Singh; GCN: .Lfunc_begin0: 9*3dc413e2SYashwant Singh; GCN-NEXT: .cfi_sections .debug_frame 10*3dc413e2SYashwant Singh; GCN-NEXT: .cfi_startproc 11*3dc413e2SYashwant Singh; GCN-NEXT: ; %bb.0: ; %bb 12*3dc413e2SYashwant Singh; GCN-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0) 13*3dc413e2SYashwant Singh; GCN-NEXT: v_mov_b32_e32 v1, 0 14*3dc413e2SYashwant Singh; GCN-NEXT: v_mov_b32_e32 v2, 0 15*3dc413e2SYashwant Singh; GCN-NEXT: global_load_dwordx2 v[1:2], v[1:2], off 16*3dc413e2SYashwant Singh; GCN-NEXT: v_and_b32_e32 v0, 1, v0 17*3dc413e2SYashwant Singh; GCN-NEXT: v_cmp_eq_u32_e32 vcc, 1, v0 18*3dc413e2SYashwant Singh; GCN-NEXT: s_xor_b64 s[4:5], vcc, -1 19*3dc413e2SYashwant Singh; GCN-NEXT: s_and_saveexec_b64 s[6:7], s[4:5] 20*3dc413e2SYashwant Singh; GCN-NEXT: s_xor_b64 s[4:5], exec, s[6:7] 21*3dc413e2SYashwant Singh; GCN-NEXT: s_cbranch_execnz .LBB0_3 22*3dc413e2SYashwant Singh; GCN-NEXT: ; %bb.1: ; %Flow 23*3dc413e2SYashwant Singh; GCN-NEXT: s_andn2_saveexec_b64 s[4:5], s[4:5] 24*3dc413e2SYashwant Singh; GCN-NEXT: s_cbranch_execnz .LBB0_4 25*3dc413e2SYashwant Singh; GCN-NEXT: .LBB0_2: ; %bb3 26*3dc413e2SYashwant Singh; GCN-NEXT: s_or_b64 exec, exec, s[4:5] 27*3dc413e2SYashwant Singh; GCN-NEXT: s_waitcnt vmcnt(0) lgkmcnt(0) 28*3dc413e2SYashwant Singh; GCN-NEXT: s_setpc_b64 s[30:31] 29*3dc413e2SYashwant Singh; GCN-NEXT: .LBB0_3: ; %bb2 30*3dc413e2SYashwant Singh; GCN-NEXT: v_mov_b32_e32 v3, 0 31*3dc413e2SYashwant Singh; GCN-NEXT: v_mov_b32_e32 v4, v3 32*3dc413e2SYashwant Singh; GCN-NEXT: s_waitcnt vmcnt(0) 33*3dc413e2SYashwant Singh; GCN-NEXT: flat_store_dwordx2 v[1:2], v[3:4] 34*3dc413e2SYashwant Singh; GCN-NEXT: ; implicit-def: $vgpr1_vgpr2 35*3dc413e2SYashwant Singh; GCN-NEXT: s_andn2_saveexec_b64 s[4:5], s[4:5] 36*3dc413e2SYashwant Singh; GCN-NEXT: s_cbranch_execz .LBB0_2 37*3dc413e2SYashwant Singh; GCN-NEXT: .LBB0_4: ; %bb1 38*3dc413e2SYashwant Singh; GCN-NEXT: v_mov_b32_e32 v3, 0 39*3dc413e2SYashwant Singh; GCN-NEXT: v_mov_b32_e32 v4, v3 40*3dc413e2SYashwant Singh; GCN-NEXT: s_waitcnt vmcnt(0) 41*3dc413e2SYashwant Singh; GCN-NEXT: flat_store_dwordx2 v[1:2], v[3:4] 42*3dc413e2SYashwant Singh; GCN-NEXT: s_or_b64 exec, exec, s[4:5] 43*3dc413e2SYashwant Singh; GCN-NEXT: s_waitcnt vmcnt(0) lgkmcnt(0) 44*3dc413e2SYashwant Singh; GCN-NEXT: s_setpc_b64 s[30:31] 45*3dc413e2SYashwant Singhbb: 46*3dc413e2SYashwant Singh %i = load ptr, ptr addrspace(1) null, align 8 47*3dc413e2SYashwant Singh br i1 %arg, label %bb1, label %bb2 48*3dc413e2SYashwant Singh 49*3dc413e2SYashwant Singhbb1: ; preds = %bb 50*3dc413e2SYashwant Singh store double 0.000000e+00, ptr %i, align 8 51*3dc413e2SYashwant Singh br label %bb3 52*3dc413e2SYashwant Singh 53*3dc413e2SYashwant Singhbb2: ; preds = %bb 54*3dc413e2SYashwant Singh store double 0.000000e+00, ptr %i, align 8 55*3dc413e2SYashwant Singh br label %bb3 56*3dc413e2SYashwant Singh 57*3dc413e2SYashwant Singhbb3: ; preds = %bb2, %bb1 58*3dc413e2SYashwant Singh call void @llvm.dbg.value(metadata !DIArgList(ptr %i, i64 0), metadata !4, metadata !DIExpression(DW_OP_LLVM_arg, 0, DW_OP_LLVM_arg, 1, DW_OP_constu, 2712, DW_OP_mul, DW_OP_plus, DW_OP_plus_uconst, 2680, DW_OP_stack_value)), !dbg !9 59*3dc413e2SYashwant Singh ret void 60*3dc413e2SYashwant Singh} 61*3dc413e2SYashwant Singh 62*3dc413e2SYashwant Singhattributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) } 63*3dc413e2SYashwant Singh 64*3dc413e2SYashwant Singh!llvm.dbg.cu = !{!0} 65*3dc413e2SYashwant Singh!llvm.module.flags = !{!3} 66*3dc413e2SYashwant Singh 67*3dc413e2SYashwant Singh!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 3.0 (trunk 131941)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, retainedTypes: !2) 68*3dc413e2SYashwant Singh!1 = !DIFile(filename: "/d/j/debug-test.c", directory: "/Volumes/Data/b") 69*3dc413e2SYashwant Singh!2 = !{} 70*3dc413e2SYashwant Singh!3 = !{i32 1, !"Debug Info Version", i32 3} 71*3dc413e2SYashwant Singh!4 = !DILocalVariable(name: "c", scope: !5, file: !1, line: 2, type: !8) 72*3dc413e2SYashwant Singh!5 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 1, type: !6, scopeLine: 1, virtualIndex: 6, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0) 73*3dc413e2SYashwant Singh!6 = !DISubroutineType(types: !7) 74*3dc413e2SYashwant Singh!7 = !{!8} 75*3dc413e2SYashwant Singh!8 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) 76*3dc413e2SYashwant Singh!9 = !DILocation(line: 0, scope: !5) 77