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 i32* 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 i32*, i32** @a, align 8, !dbg !18 12 %1 = bitcast i32* %0 to i8*, !dbg !19 13 %2 = load i32, i32* @j, align 4, !dbg !20 14 %conv = sext i32 %2 to i64, !dbg !20 15 call void @llvm.memset.p0i8.i64(i8* align 4 %1, i8 0, i64 %conv, i1 false), !dbg !19 16 ret void, !dbg !21 17} 18 19declare void @llvm.memset.p0i8.i64(i8* nocapture writeonly, i8, i64, i1 immarg) #1 20 21!llvm.dbg.cu = !{!2} 22!llvm.module.flags = !{!9, !10, !11, !12} 23!llvm.ident = !{!13} 24 25!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) 26!1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !8, isLocal: false, isDefinition: true) 27!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) 28!3 = !DIFile(filename: "file.c", directory: "") 29!4 = !{!0, !5} 30!5 = !DIGlobalVariableExpression(var: !6, expr: !DIExpression()) 31!6 = distinct !DIGlobalVariable(name: "j", scope: !2, file: !3, line: 2, type: !7, isLocal: false, isDefinition: true) 32!7 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) 33!8 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !7, size: 64) 34!9 = !{i32 7, !"Dwarf Version", i32 4} 35!10 = !{i32 2, !"Debug Info Version", i32 3} 36!11 = !{i32 1, !"wchar_size", i32 4} 37!12 = !{i32 7, !"frame-pointer", i32 2} 38!13 = !{!"clang version 14.0.0"} 39!14 = distinct !DISubprogram(name: "fun", scope: !3, file: !3, line: 3, type: !15, scopeLine: 3, spFlags: DISPFlagDefinition, unit: !2, retainedNodes: !17) 40!15 = !DISubroutineType(types: !16) 41!16 = !{null} 42!17 = !{} 43!18 = !DILocation(line: 4, column: 11, scope: !14) 44!19 = !DILocation(line: 4, column: 4, scope: !14) 45!20 = !DILocation(line: 4, column: 15, scope: !14) 46!21 = !DILocation(line: 5, column: 1, scope: !14) 47