summaryrefslogtreecommitdiff
path: root/test/CodeGen/AArch64/no-fp-asm-clobbers-crash.ll
blob: 5cd8dc57f9adfad5955ee5df965bd360b150e308 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; RUN: llc < %s | FileCheck %s
;
; Be sure that we ignore clobbers of unallocatable registers, rather than
; crashing.

target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
target triple = "aarch64"

; CHECK-LABEL: foo:
; CHECK: ret
define void @foo() #0 {
entry:
  call void asm sideeffect "", "~{v0}"()
  call void asm sideeffect "", "~{s0}"()
  ret void
}

attributes #0 = { nounwind "target-features"="-crypto,-fp-armv8,-neon" }