summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/RISCV/exception-pointer-register.ll
diff options
context:
space:
mode:
authorLuís Marques <luismarques@lowrisc.org>2019-11-13 13:28:33 +0000
committerLuís Marques <luismarques@lowrisc.org>2019-11-13 13:28:33 +0000
commitc5b56caa322b00e7d31a03523313a7e3bc135bcc (patch)
tree9b888dd09757139f154361ab9747b5ad42ada9e7 /llvm/test/CodeGen/RISCV/exception-pointer-register.ll
parent70cc355f2f406a6cc63a8a9f23752f367d078a56 (diff)
downloadbcm5719-llvm-c5b56caa322b00e7d31a03523313a7e3bc135bcc.tar.gz
bcm5719-llvm-c5b56caa322b00e7d31a03523313a7e3bc135bcc.zip
Revert "[RISCV] Fix wrong CFI directives"
test/DebugInfo/RISCV/relax-debug-frame.ll wasn't properly updated.
Diffstat (limited to 'llvm/test/CodeGen/RISCV/exception-pointer-register.ll')
-rw-r--r--llvm/test/CodeGen/RISCV/exception-pointer-register.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/RISCV/exception-pointer-register.ll b/llvm/test/CodeGen/RISCV/exception-pointer-register.ll
index fafd506bc78..b341268ff38 100644
--- a/llvm/test/CodeGen/RISCV/exception-pointer-register.ll
+++ b/llvm/test/CodeGen/RISCV/exception-pointer-register.ll
@@ -40,7 +40,11 @@ define void @caller(i1* %p) personality i8* bitcast (i32 (...)* @__gxx_personali
; RV32I-NEXT: lw s1, 4(sp)
; RV32I-NEXT: lw s0, 8(sp)
; RV32I-NEXT: lw ra, 12(sp)
+; RV32I-NEXT: .cfi_restore ra
+; RV32I-NEXT: .cfi_restore s0
+; RV32I-NEXT: .cfi_restore s1
; RV32I-NEXT: addi sp, sp, 16
+; RV32I-NEXT: .cfi_def_cfa_offset 0
; RV32I-NEXT: ret
; RV32I-NEXT: .LBB0_4: # %lpad
; RV32I-NEXT: .Ltmp4:
@@ -77,7 +81,11 @@ define void @caller(i1* %p) personality i8* bitcast (i32 (...)* @__gxx_personali
; RV64I-NEXT: ld s1, 8(sp)
; RV64I-NEXT: ld s0, 16(sp)
; RV64I-NEXT: ld ra, 24(sp)
+; RV64I-NEXT: .cfi_restore ra
+; RV64I-NEXT: .cfi_restore s0
+; RV64I-NEXT: .cfi_restore s1
; RV64I-NEXT: addi sp, sp, 32
+; RV64I-NEXT: .cfi_def_cfa_offset 0
; RV64I-NEXT: ret
; RV64I-NEXT: .LBB0_4: # %lpad
; RV64I-NEXT: .Ltmp4:
@@ -111,10 +119,12 @@ end2:
define internal void @callee(i1* %p) {
; RV32I-LABEL: callee:
; RV32I: # %bb.0:
+; RV32I-NEXT: .cfi_def_cfa_offset 0
; RV32I-NEXT: ret
;
; RV64I-LABEL: callee:
; RV64I: # %bb.0:
+; RV64I-NEXT: .cfi_def_cfa_offset 0
; RV64I-NEXT: ret
ret void
}
OpenPOWER on IntegriCloud