blob: 45cb38f30f355f183409b78056a1a016431766f7 [file] [log] [blame]
Renato Golinc7aea402014-05-06 16:51:25 +00001; RUN: not llc < %s -mtriple=arm-apple-darwin 2>&1 | FileCheck %s
2; RUN: not llc < %s -mtriple=arm-linux-gnueabi 2>&1 | FileCheck %s
3
4define i32 @get_stack() nounwind {
5entry:
Luke Cheeseman85fd06d2015-06-01 12:02:47 +00006; CHECK: Invalid register name "notareg".
Renato Golinc7aea402014-05-06 16:51:25 +00007 %sp = call i32 @llvm.read_register.i32(metadata !0)
8 ret i32 %sp
9}
10
11declare i32 @llvm.read_register.i32(metadata) nounwind
12
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +000013!0 = !{!"notareg\00"}