Renato Golin | c7aea40 | 2014-05-06 16:51:25 +0000 | [diff] [blame^] | 1 | ; 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 | |||||
4 | define i32 @get_stack() nounwind { | ||||
5 | entry: | ||||
6 | ; CHECK: Invalid register name global variable | ||||
7 | %sp = call i32 @llvm.read_register.i32(metadata !0) | ||||
8 | ret i32 %sp | ||||
9 | } | ||||
10 | |||||
11 | declare i32 @llvm.read_register.i32(metadata) nounwind | ||||
12 | |||||
13 | !0 = metadata !{metadata !"notareg\00"} |