mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
df6db93a4d
PrologEpilog code, and use it to determine whether the asm forces stack alignment or not. gcc consistently does not do this for GCC-style asms; Apple gcc inconsistently sometimes does it for asm blocks. There is no convenient place to put a bit in either the SDNode or the MachineInstr form, so I've added an extra operand to each; unlovely, but it does allow for expansion for more bits, should we need it. PR 5125. Some existing testcases are affected. The operand lists of the SDNode and MachineInstr forms are indexed with awesome mnemonics, like "2"; I may fix this someday, but not now. I'm not making it any worse. If anyone is inspired I think you can find all the right places from this patch. llvm-svn: 107506
11 lines
245 B
LLVM
11 lines
245 B
LLVM
; RUN: llc < %s -mtriple=thumb-apple-darwin -disable-fp-elim | FileCheck %s
|
|
; rdar://7268481
|
|
|
|
define void @t() nounwind {
|
|
; CHECK: t:
|
|
; CHECK: push {r7}
|
|
entry:
|
|
call void asm sideeffect alignstack ".long 0xe7ffdefe", ""() nounwind
|
|
ret void
|
|
}
|