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