diff options
| author | Venkatraman Govindaraju <venkatra@cs.wisc.edu> | 2014-02-01 18:54:16 +0000 |
|---|---|---|
| committer | Venkatraman Govindaraju <venkatra@cs.wisc.edu> | 2014-02-01 18:54:16 +0000 |
| commit | 52b6473d74acaffb9b7a8acfc8fdcd8b5f45a559 (patch) | |
| tree | 1dacda406646dce479cdcd873991bcb9a00c8cb3 /llvm/test/CodeGen/SPARC | |
| parent | 445f7fb06412217f6a71db8cd36b8c3946b0d8b2 (diff) | |
| download | bcm5719-llvm-52b6473d74acaffb9b7a8acfc8fdcd8b5f45a559.tar.gz bcm5719-llvm-52b6473d74acaffb9b7a8acfc8fdcd8b5f45a559.zip | |
[Sparc] Set %o7 as the return address register instead of %i7 in MCRegisterInfo. Also, add CFI instructions to initialize the frame correctly.
llvm-svn: 200617
Diffstat (limited to 'llvm/test/CodeGen/SPARC')
| -rw-r--r-- | llvm/test/CodeGen/SPARC/exception.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/SPARC/exception.ll b/llvm/test/CodeGen/SPARC/exception.ll index fd9e871dd9a..b45d998a9c1 100644 --- a/llvm/test/CodeGen/SPARC/exception.ll +++ b/llvm/test/CodeGen/SPARC/exception.ll @@ -56,7 +56,11 @@ ; V8PIC_NOCFI-NEXT: .word _ZTIi ; V8PIC_NOCFI: .section .eh_frame ; V8PIC_NOCFI-NOT: .section +; V8PIC_NOCFI: .byte 15 ! CIE Return Address Column ; V8PIC_NOCFI: .word %r_disp32(DW.ref.__gxx_personality_v0) +; V8PIC_NOCFI: .byte 12 ! DW_CFA_def_cfa +; V8PIC_NOCFI: .byte 14 ! Reg 14 +; V8PIC_NOCFI-NEXT: .byte 0 ! Offset 0 ; V8PIC_NOCFI: .word %r_disp32(.Ltmp{{.+}}) ! FDE initial location @@ -94,7 +98,11 @@ ; V9PIC_NOCFI-NEXT: .xword _ZTIi ; V9PIC_NOCFI: .section .eh_frame ; V9PIC_NOCFI-NOT: .section +; V9PIC_NOCFI: .byte 15 ! CIE Return Address Column ; V9PIC_NOCFI: .word %r_disp32(DW.ref.__gxx_personality_v0) +; V9PIC_NOCFI: .byte 12 ! DW_CFA_def_cfa +; V9PIC_NOCFI-NEXT: .byte 14 ! Reg 14 +; V9PIC_NOCFI: .ascii "\377\017" ! Offset 2047 ; V9PIC_NOCFI: .word %r_disp32(.Ltmp{{.+}}) ! FDE initial location define i32 @main(i32 %argc, i8** nocapture readnone %argv) unnamed_addr #0 { |

