67 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 32; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx908 < %s | FileCheck %s3 4define amdgpu_kernel void @_Z3fooPiiii(ptr addrspace(1) nocapture noundef writeonly %c.coerce, i32 noundef %a, i32 noundef %b, i32 noundef %d) !dbg !9 {5; CHECK-LABEL: _Z3fooPiiii:6; CHECK: .Lfunc_begin0:7; CHECK-NEXT: .file 0 "test" "a.hip" md5 0x004a28df8cfd98cdd2c71d5d814d9c6b8; CHECK-NEXT: .cfi_sections .debug_frame9; CHECK-NEXT: .cfi_startproc10; CHECK-NEXT: ; %bb.0: ; %entry11; CHECK-NEXT: .file 1 "." "a.h"12; CHECK-NEXT: .loc 1 5 12 prologue_end ; ./a.h:5:12 @[ a.hip:12:8 ]13; CHECK-NEXT: s_load_dwordx4 s[0:3], s[8:9], 0x814; CHECK-NEXT: s_load_dwordx2 s[4:5], s[8:9], 0x015; CHECK-NEXT: v_mov_b32_e32 v0, 016; CHECK-NEXT: s_waitcnt lgkmcnt(0)17; CHECK-NEXT: s_add_i32 s1, s1, s018; CHECK-NEXT: .Ltmp0:19; CHECK-NEXT: .loc 1 5 12 is_stmt 0 ; ./a.h:5:12 @[ a.hip:13:9 ]20; CHECK-NEXT: s_add_i32 s0, s2, s021; CHECK-NEXT: .Ltmp1:22; CHECK-NEXT: .file 2 "a.hip"23; CHECK-NEXT: .loc 2 13 6 is_stmt 1 ; a.hip:13:624; CHECK-NEXT: s_mul_i32 s0, s0, s125; CHECK-NEXT: v_mov_b32_e32 v1, s026; CHECK-NEXT: global_store_dword v0, v1, s[4:5]27; CHECK-NEXT: .loc 2 14 1 ; a.hip:14:128; CHECK-NEXT: s_endpgm29; CHECK-NEXT: .Ltmp2:30entry:31 %add.i = add nsw i32 %b, %a, !dbg !1332 %add.i3 = add nsw i32 %d, %a, !dbg !1733 %mul = mul nsw i32 %add.i3, %add.i, !dbg !1934 store i32 %mul, ptr addrspace(1) %c.coerce, align 4, !dbg !19, !tbaa !2035 ret void, !dbg !2436}37 38!llvm.dbg.cu = !{!0}39!llvm.module.flags = !{!2, !3, !4, !5, !6, !7}40!llvm.ident = !{!8}41 42!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_14, file: !1, producer: "clang version 20.0.0", isOptimized: true, runtimeVersion: 0, emissionKind: LineTablesOnly, splitDebugInlining: false, nameTableKind: None)43!1 = !DIFile(filename: "a.hip", directory: "test", checksumkind: CSK_MD5, checksum: "004a28df8cfd98cdd2c71d5d814d9c6b")44!2 = !{i32 1, !"amdhsa_code_object_version", i32 500}45!3 = !{i32 1, !"amdgpu_printf_kind", !"hostcall"}46!4 = !{i32 7, !"Dwarf Version", i32 5}47!5 = !{i32 2, !"Debug Info Version", i32 3}48!6 = !{i32 1, !"wchar_size", i32 4}49!7 = !{i32 8, !"PIC Level", i32 2}50!8 = !{!"clang version 20.0.0"}51!9 = distinct !DISubprogram(name: "foo", scope: !10, file: !10, line: 11, type: !11, scopeLine: 11, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0)52!10 = !DIFile(filename: "a.hip", directory: "test")53!11 = !DISubroutineType(types: !12)54!12 = !{}55!13 = !DILocation(line: 5, column: 12, scope: !14, inlinedAt: !16)56!14 = distinct !DISubprogram(name: "bar", scope: !15, file: !15, line: 4, type: !11, scopeLine: 4, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0)57!15 = !DIFile(filename: "./a.h", directory: "test")58!16 = distinct !DILocation(line: 12, column: 8, scope: !9)59!17 = !DILocation(line: 5, column: 12, scope: !14, inlinedAt: !18)60!18 = distinct !DILocation(line: 13, column: 9, scope: !9)61!19 = !DILocation(line: 13, column: 6, scope: !9)62!20 = !{!21, !21, i64 0}63!21 = !{!"int", !22, i64 0}64!22 = !{!"omnipotent char", !23, i64 0}65!23 = !{!"Simple C++ TBAA"}66!24 = !DILocation(line: 14, column: 1, scope: !9)67