blob: d86d2e617ee569b5840609fbcfcc97860f37ce0e [file] [log] [blame]
Renato Golinc7aea402014-05-06 16:51:25 +00001; RUN: not llc < %s -mtriple=arm64-apple-darwin 2>&1 | FileCheck %s
2; RUN: not llc < %s -mtriple=arm64-linux-gnueabi 2>&1 | FileCheck %s
3
4define i32 @get_stack() nounwind {
5entry:
6; FIXME: Include an allocatable-specific error message
7; CHECK: Invalid register name global variable
8 %sp = call i32 @llvm.read_register.i32(metadata !0)
9 ret i32 %sp
10}
11
12declare i32 @llvm.read_register.i32(metadata) nounwind
13
14!0 = metadata !{metadata !"x5\00"}