mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
d4c615be8c
Discussed here: http://lists.llvm.org/pipermail/llvm-dev/2018-January/120320.html In preparation for adding support for named vregs we are changing the sigil for physical registers in MIR to '$' from '%'. This will prevent name clashes of named physical register with named vregs. llvm-svn: 323922
44 lines
1.5 KiB
LLVM
44 lines
1.5 KiB
LLVM
; RUN: llc -mtriple=x86_64-unknown-unknown -o - %s | FileCheck %s
|
|
; RUN: llc -mtriple=x86_64-unknown-unknown -filetype=obj < %s \
|
|
; RUN: | llvm-dwarfdump -v - | FileCheck %s --check-prefix=DWARF
|
|
|
|
define i1 @test() !dbg !4 {
|
|
entry:
|
|
%end = alloca i64, align 8
|
|
br label %while.cond
|
|
|
|
while.cond:
|
|
call void @llvm.dbg.value(metadata i64* %end, metadata !5, metadata !6), !dbg !7
|
|
%call = call i1 @fn(i64* %end, i64* %end, i64* null, i8* null, i64 0, i64* null, i32* null, i8* null), !dbg !7
|
|
br label %while.body
|
|
|
|
while.body:
|
|
br i1 0, label %while.end, label %while.cond
|
|
|
|
while.end:
|
|
ret i1 true
|
|
}
|
|
|
|
; CHECK-LABEL: test
|
|
; CHECK: #DEBUG_VALUE: test:w <- [DW_OP_plus_uconst 8] [$rsp+0]
|
|
; DWARF: DW_AT_location [DW_FORM_sec_offset] (
|
|
; DWARF-NEXT: [{{.*}}, {{.*}}): DW_OP_breg7 RSP+8)
|
|
|
|
declare i1 @fn(i64*, i64*, i64*, i8*, i64, i64*, i32*, i8*)
|
|
declare void @llvm.dbg.value(metadata, metadata, metadata)
|
|
|
|
!llvm.dbg.cu = !{!0}
|
|
!llvm.module.flags = !{!2,!3}
|
|
|
|
!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 4.0.0", emissionKind: FullDebug)
|
|
!1 = !DIFile(filename: "test.c", directory: "/")
|
|
!2 = !{i32 2, !"Dwarf Version", i32 4}
|
|
!3 = !{i32 2, !"Debug Info Version", i32 3}
|
|
!4 = distinct !DISubprogram(name: "test", type: !10, unit: !0)
|
|
!5 = !DILocalVariable(name: "w", scope: !4, type: !9)
|
|
!6 = !DIExpression()
|
|
!7 = !DILocation(line: 210, column: 12, scope: !4)
|
|
!8 = !{!9}
|
|
!9 = !DIBasicType(name: "bool", size: 8, encoding: DW_ATE_boolean)
|
|
!10 = !DISubroutineType(types: !8)
|