1; RUN: llc < %s -mtriple=s390x-linux-gnu -generate-arange-section 2; 3; Test that the EXRL target instruction is emitted successfully (before text 4; section is closed). 5 6@a = dso_local global ptr null, align 8, !dbg !0 7@j = dso_local global i32 0, align 4, !dbg !5 8 9define void @fun() !dbg !14 { 10entry: 11 %0 = load ptr, ptr @a, align 8, !dbg !18 12 %1 = load i32, ptr @j, align 4, !dbg !20 13 %conv = sext i32 %1 to i64, !dbg !20 14 call void @llvm.memset.p0.i64(ptr align 4 %0, i8 0, i64 %conv, i1 false), !dbg !19 15 ret void, !dbg !21 16} 17 18declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1 19 20!llvm.dbg.cu = !{!2} 21!llvm.module.flags = !{!9, !10, !11, !12} 22!llvm.ident = !{!13} 23 24!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) 25!1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !8, isLocal: false, isDefinition: true) 26!2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "clang version 14.0.0", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, globals: !4, splitDebugInlining: false, nameTableKind: None) 27!3 = !DIFile(filename: "file.c", directory: "") 28!4 = !{!0, !5} 29!5 = !DIGlobalVariableExpression(var: !6, expr: !DIExpression()) 30!6 = distinct !DIGlobalVariable(name: "j", scope: !2, file: !3, line: 2, type: !7, isLocal: false, isDefinition: true) 31!7 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) 32!8 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !7, size: 64) 33!9 = !{i32 7, !"Dwarf Version", i32 4} 34!10 = !{i32 2, !"Debug Info Version", i32 3} 35!11 = !{i32 1, !"wchar_size", i32 4} 36!12 = !{i32 7, !"frame-pointer", i32 2} 37!13 = !{!"clang version 14.0.0"} 38!14 = distinct !DISubprogram(name: "fun", scope: !3, file: !3, line: 3, type: !15, scopeLine: 3, spFlags: DISPFlagDefinition, unit: !2, retainedNodes: !17) 39!15 = !DISubroutineType(types: !16) 40!16 = !{null} 41!17 = !{} 42!18 = !DILocation(line: 4, column: 11, scope: !14) 43!19 = !DILocation(line: 4, column: 4, scope: !14) 44!20 = !DILocation(line: 4, column: 15, scope: !14) 45!21 = !DILocation(line: 5, column: 1, scope: !14) 46