76 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 22; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx908 < %s | FileCheck -check-prefix=GCN %s3 4declare void @llvm.dbg.value(metadata, metadata, metadata) #05 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_frame10; GCN-NEXT: .cfi_startproc11; GCN-NEXT: ; %bb.0: ; %bb12; GCN-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)13; GCN-NEXT: v_mov_b32_e32 v1, 014; GCN-NEXT: v_mov_b32_e32 v2, 015; GCN-NEXT: global_load_dwordx2 v[1:2], v[1:2], off16; GCN-NEXT: v_and_b32_e32 v0, 1, v017; GCN-NEXT: v_cmp_ne_u32_e32 vcc, 1, v018; GCN-NEXT: s_and_saveexec_b64 s[4:5], vcc19; GCN-NEXT: s_xor_b64 s[4:5], exec, s[4:5]20; GCN-NEXT: s_cbranch_execnz .LBB0_321; GCN-NEXT: ; %bb.1: ; %Flow22; GCN-NEXT: s_andn2_saveexec_b64 s[4:5], s[4:5]23; GCN-NEXT: s_cbranch_execnz .LBB0_424; GCN-NEXT: .LBB0_2: ; %bb325; GCN-NEXT: s_or_b64 exec, exec, s[4:5]26; GCN-NEXT: s_waitcnt vmcnt(0) lgkmcnt(0)27; GCN-NEXT: s_setpc_b64 s[30:31]28; GCN-NEXT: .LBB0_3: ; %bb229; GCN-NEXT: v_mov_b32_e32 v3, 030; GCN-NEXT: v_mov_b32_e32 v4, v331; GCN-NEXT: s_waitcnt vmcnt(0)32; GCN-NEXT: flat_store_dwordx2 v[1:2], v[3:4]33; GCN-NEXT: ; implicit-def: $vgpr1_vgpr234; GCN-NEXT: s_andn2_saveexec_b64 s[4:5], s[4:5]35; GCN-NEXT: s_cbranch_execz .LBB0_236; GCN-NEXT: .LBB0_4: ; %bb137; GCN-NEXT: v_mov_b32_e32 v3, 038; GCN-NEXT: v_mov_b32_e32 v4, v339; GCN-NEXT: s_waitcnt vmcnt(0)40; GCN-NEXT: flat_store_dwordx2 v[1:2], v[3:4]41; GCN-NEXT: s_or_b64 exec, exec, s[4:5]42; GCN-NEXT: s_waitcnt vmcnt(0) lgkmcnt(0)43; GCN-NEXT: s_setpc_b64 s[30:31]44bb:45 %i = load ptr, ptr addrspace(1) null, align 846 br i1 %arg, label %bb1, label %bb247 48bb1: ; preds = %bb49 store double 0.000000e+00, ptr %i, align 850 br label %bb351 52bb2: ; preds = %bb53 store double 0.000000e+00, ptr %i, align 854 br label %bb355 56bb3: ; preds = %bb2, %bb157 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 !958 ret void59}60 61attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }62 63!llvm.dbg.cu = !{!0}64!llvm.module.flags = !{!3}65 66!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)67!1 = !DIFile(filename: "/d/j/debug-test.c", directory: "/Volumes/Data/b")68!2 = !{}69!3 = !{i32 1, !"Debug Info Version", i32 3}70!4 = !DILocalVariable(name: "c", scope: !5, file: !1, line: 2, type: !8)71!5 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 1, type: !6, scopeLine: 1, virtualIndex: 6, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0)72!6 = !DISubroutineType(types: !7)73!7 = !{!8}74!8 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)75!9 = !DILocation(line: 0, scope: !5)76