Home | History | Annotate | Download | only in ARM
      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 ; FIXME: Include an allocatable-specific error message
      7 ; CHECK: Invalid register name "r5".
      8 	%sp = call i32 @llvm.read_register.i32(metadata !0)
      9   ret i32 %sp
     10 }
     11 
     12 declare i32 @llvm.read_register.i32(metadata) nounwind
     13 
     14 !0 = !{!"r5\00"}
     15