1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=armv7-linux-gnueabihf %s -o - | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker; Generated from: 4*9880d681SAndroid Build Coastguard Worker; void stack_offsets() { 5*9880d681SAndroid Build Coastguard Worker; asm("" ::: "d8", "d9", "d11", "d13"); 6*9880d681SAndroid Build Coastguard Worker; } 7*9880d681SAndroid Build Coastguard Worker; Compiled with: "clang -target armv7-linux-gnueabihf -O3" 8*9880d681SAndroid Build Coastguard Worker 9*9880d681SAndroid Build Coastguard Worker; The important point we're checking here is that the .cfi directives describe 10*9880d681SAndroid Build Coastguard Worker; the layout of the VFP registers correctly. The fact that the numbers are 11*9880d681SAndroid Build Coastguard Worker; monotonic in memory is also a nice property to have. 12*9880d681SAndroid Build Coastguard Worker 13*9880d681SAndroid Build Coastguard Workerdefine void @stack_offsets() !dbg !4 { 14*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: stack_offsets: 15*9880d681SAndroid Build Coastguard Worker; CHECK: vpush {d13} 16*9880d681SAndroid Build Coastguard Worker; CHECK: vpush {d11} 17*9880d681SAndroid Build Coastguard Worker; CHECK: vpush {d8, d9} 18*9880d681SAndroid Build Coastguard Worker 19*9880d681SAndroid Build Coastguard Worker; CHECK: .cfi_offset {{269|d13}}, -8 20*9880d681SAndroid Build Coastguard Worker; CHECK: .cfi_offset {{267|d11}}, -16 21*9880d681SAndroid Build Coastguard Worker; CHECK: .cfi_offset {{265|d9}}, -24 22*9880d681SAndroid Build Coastguard Worker; CHECK: .cfi_offset {{264|d8}}, -32 23*9880d681SAndroid Build Coastguard Worker 24*9880d681SAndroid Build Coastguard Worker; CHECK: vpop {d8, d9} 25*9880d681SAndroid Build Coastguard Worker; CHECK: vpop {d11} 26*9880d681SAndroid Build Coastguard Worker; CHECK: vpop {d13} 27*9880d681SAndroid Build Coastguard Worker call void asm sideeffect "", "~{d8},~{d9},~{d11},~{d13}"() #1 28*9880d681SAndroid Build Coastguard Worker ret void 29*9880d681SAndroid Build Coastguard Worker} 30*9880d681SAndroid Build Coastguard Worker 31*9880d681SAndroid Build Coastguard Worker!llvm.dbg.cu = !{!0} 32*9880d681SAndroid Build Coastguard Worker!llvm.module.flags = !{!8, !9} 33*9880d681SAndroid Build Coastguard Worker 34*9880d681SAndroid Build Coastguard Worker!0 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.5.0 ", isOptimized: false, emissionKind: FullDebug, file: !1, enums: !2, retainedTypes: !2, globals: !2, imports: !2) 35*9880d681SAndroid Build Coastguard Worker!1 = !DIFile(filename: "tmp.c", directory: "/Users/tim/llvm/build") 36*9880d681SAndroid Build Coastguard Worker!2 = !{} 37*9880d681SAndroid Build Coastguard Worker!4 = distinct !DISubprogram(name: "bar", line: 1, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, unit: !0, scopeLine: 1, file: !1, scope: !5, type: !6, variables: !2) 38*9880d681SAndroid Build Coastguard Worker!5 = !DIFile(filename: "tmp.c", directory: "/Users/tim/llvm/build") 39*9880d681SAndroid Build Coastguard Worker!6 = !DISubroutineType(types: !7) 40*9880d681SAndroid Build Coastguard Worker!7 = !{null} 41*9880d681SAndroid Build Coastguard Worker!8 = !{i32 2, !"Dwarf Version", i32 4} 42*9880d681SAndroid Build Coastguard Worker!9 = !{i32 1, !"Debug Info Version", i32 3} 43*9880d681SAndroid Build Coastguard Worker 44