1; RUN: not --crash llc < %s -mtriple=x86_64-apple-darwin 2>&1 | FileCheck %s 2; RUN: not --crash llc < %s -mtriple=x86_64-linux-gnueabi 2>&1 | FileCheck %s 3 4define i32 @get_stack() nounwind { 5entry: 6; CHECK: Invalid register name global variable 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"} 14