Skip to content

Commit c8292a1

Browse files
committed
squashme: precommit test
1 parent 0d15081 commit c8292a1

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed
+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2+
; RUN: llc -mtriple=amdgcn -mcpu=gfx1030 -o - < %s | FileCheck -check-prefix=GCN %s
3+
4+
define void @_Z12lane_pc_testj() #0 !dbg !9 {
5+
; GCN-LABEL: _Z12lane_pc_testj:
6+
; GCN: .Lfunc_begin0:
7+
; GCN-NEXT: .file 0 "/" "t.cpp"
8+
; GCN-NEXT: .loc 0 3 0 ; t.cpp:3:0
9+
; GCN-NEXT: .cfi_sections .debug_frame
10+
; GCN-NEXT: .cfi_startproc
11+
; GCN-NEXT: ; %bb.0:
12+
; GCN-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
13+
; GCN-NEXT: s_mov_b32 s9, s33
14+
; GCN-NEXT: s_mov_b32 s33, s32
15+
; GCN-NEXT: s_add_i32 s32, s32, 0x100
16+
; GCN-NEXT: ; %bb.1: ; %lab
17+
; GCN-NEXT: .Ltmp0:
18+
; GCN-NEXT: .loc 0 12 1 prologue_end ; t.cpp:12:1
19+
; GCN-NEXT: s_mov_b64 s[4:5], src_private_base
20+
; GCN-NEXT: s_mov_b32 s6, 32
21+
; GCN-NEXT: s_lshr_b64 s[4:5], s[4:5], s6
22+
; GCN-NEXT: s_mov_b64 s[6:7], 0
23+
; GCN-NEXT: s_mov_b32 s5, -1
24+
; GCN-NEXT: s_lshr_b32 s8, s33, 5
25+
; GCN-NEXT: s_cmp_lg_u32 s8, s5
26+
; GCN-NEXT: s_cselect_b32 s5, s4, s7
27+
; GCN-NEXT: s_cselect_b32 s4, s8, s6
28+
; GCN-NEXT: v_mov_b32_e32 v2, 0
29+
; GCN-NEXT: v_mov_b32_e32 v0, s4
30+
; GCN-NEXT: v_mov_b32_e32 v1, s5
31+
; GCN-NEXT: .loc 0 13 1 ; t.cpp:13:1
32+
; GCN-NEXT: flat_store_dword v[0:1], v2
33+
; GCN-NEXT: v_mov_b32_e32 v2, 1
34+
; GCN-NEXT: .loc 0 12 1 ; t.cpp:12:1
35+
; GCN-NEXT: v_mov_b32_e32 v0, s4
36+
; GCN-NEXT: v_mov_b32_e32 v1, s5
37+
; GCN-NEXT: .loc 0 14 1 ; t.cpp:14:1
38+
; GCN-NEXT: flat_store_dword v[0:1], v2
39+
; GCN-NEXT: s_add_i32 s32, s32, 0xffffff00
40+
; GCN-NEXT: s_mov_b32 s33, s9
41+
; GCN-NEXT: s_waitcnt lgkmcnt(0)
42+
; GCN-NEXT: s_setpc_b64 s[30:31]
43+
; GCN-NEXT: .Ltmp1:
44+
%1 = alloca i32, align 4, addrspace(5)
45+
%2 = addrspacecast ptr addrspace(5) %1 to ptr, !dbg !12
46+
br label %lab
47+
48+
lab:
49+
store i32 0, ptr %2, align 4, !dbg !13
50+
store i32 1, ptr %2, align 4, !dbg !14
51+
ret void
52+
}
53+
54+
attributes #0 = { convergent mustprogress noinline nounwind optnone "amdgpu-stack-objects" "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="gfx1030" "target-features"="+16-bit-insts,+ci-insts,+dl-insts,+dot1-insts,+dot10-insts,+dot2-insts,+dot5-insts,+dot6-insts,+dot7-insts,+dpp,+gfx10-3-insts,+gfx10-insts,+gfx8-insts,+gfx9-insts,+s-memrealtime,+s-memtime-inst,+wavefrontsize32" }
55+
56+
!llvm.dbg.cu = !{!0}
57+
!llvm.module.flags = !{!2, !3, !4, !5, !6, !7, !8}
58+
59+
!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_14, file: !1, producer: "clang version 20.0.0git", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: None)
60+
!1 = !DIFile(filename: "t.cpp", directory: "/")
61+
!2 = !{i32 1, !"amdhsa_code_object_version", i32 500}
62+
!3 = !{i32 1, !"amdgpu_printf_kind", !"hostcall"}
63+
!4 = !{i32 7, !"Dwarf Version", i32 5}
64+
!5 = !{i32 2, !"Debug Info Version", i32 3}
65+
!6 = !{i32 1, !"wchar_size", i32 4}
66+
!7 = !{i32 8, !"PIC Level", i32 2}
67+
!8 = !{i32 7, !"frame-pointer", i32 2}
68+
!9 = distinct !DISubprogram(name: "lane_pc_test", linkageName: "_Z12lane_pc_testj", scope: !1, file: !1, line: 1, scopeLine: 3, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, type: !10, unit: !0)
69+
!10 = !DISubroutineType(types: !11)
70+
!11 = !{}
71+
!12 = !DILocation(line: 12, column: 1, scope: !9)
72+
!13 = !DILocation(line: 13, column: 1, scope: !9)
73+
!14 = !DILocation(line: 14, column: 1, scope: !9)

0 commit comments

Comments
 (0)