[PATCH] D56275: x86 interrupt calling convention: Fix argument offsets

Wei Xiao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 17 18:17:10 PST 2019


wxiao3 added a comment.

Hi,

I have narrowed the issue to a small test case as below and hope it can help you it:

%struct.interrupt_frame = type { i64, i64, i64, i64, i64 }

declare void @foo(%struct.interrupt_frame*, i64*)
define x86_intrcc void @test_fn_ecode(%struct.interrupt_frame* %frame, i64 %ecode) {

  %x.addr = alloca i64, align 4
  store i64 %ecode, i64* %x.addr, align 4
  call void @foo(%struct.interrupt_frame* %frame, i64* %x.addr)
  ret void

}

Wei


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56275/new/

https://reviews.llvm.org/D56275





More information about the llvm-commits mailing list