llvm.org GIT mirror llvm / a813b38 test / CodeGen / AArch64 / inline-asm-clobber.ll
a813b38

Tree @a813b38 (Download .tar.gz)

inline-asm-clobber.ll @a813b38raw · history · blame

1
2
3
4
5
6
7
8
; RUN: llc <%s -mtriple=aarch64-none-eabi 2>&1  | FileCheck %s

; CHECK: warning: inline asm clobber list contains reserved registers: SP

define void @foo() nounwind {
  call void asm sideeffect "mov x7, #1", "~{x7},~{sp}"()
  ret void
}