source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/ARM/named-reg-notareg.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 366 bytes
Line 
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
4define i32 @get_stack() nounwind {
5entry:
6; CHECK: Invalid register name "notareg".
7        %sp = call i32 @llvm.read_register.i32(metadata !0)
8  ret i32 %sp
9}
10
11declare i32 @llvm.read_register.i32(metadata) nounwind
12
13!0 = !{!"notareg\00"}
Note: See TracBrowser for help on using the repository browser.