2014-11-24 09:08:18 +00:00
|
|
|
; RUN: not llc < %s -mtriple=arm64-apple-darwin 2>&1 | FileCheck %s
|
|
|
|
; RUN: not llc < %s -mtriple=arm64-linux-gnueabi 2>&1 | FileCheck %s
|
|
|
|
|
|
|
|
define i32 @get_stack() nounwind {
|
|
|
|
entry:
|
2015-06-09 19:06:30 +00:00
|
|
|
; CHECK: Invalid register name "notareg".
|
2014-11-24 09:08:18 +00:00
|
|
|
%sp = call i32 @llvm.read_register.i32(metadata !0)
|
|
|
|
ret i32 %sp
|
|
|
|
}
|
|
|
|
|
|
|
|
declare i32 @llvm.read_register.i32(metadata) nounwind
|
|
|
|
|
2015-01-18 16:17:27 +00:00
|
|
|
!0 = !{!"notareg\00"}
|