[PATCH] [PATCH] Fix for http://llvm.org/bugs/show_bug.cgi?id=19905

Anton Korobeynikov anton at korobeynikov.info
Sat Jun 7 21:47:50 PDT 2014


================
Comment at: test/CodeGen/X86/pr19905.ll:26
@@ +25,3 @@
+
+; These are supposed to be offsets from the CFA, which is the value of
+; stack pointer just before the call.  %rbx is the 14th register we
----------------
You redefined CFA register above to be %rbp. So, not, this is not stack pointer just before the call anymore.

-120 is because the rule here is"take the address from %rbp and add 16 to it". %rbx is 13th register to be pushed, so we have to offset by 13 * -8 - 16 ;)

http://reviews.llvm.org/D4052






More information about the llvm-commits mailing list