1*9880d681SAndroid Build Coastguard Worker; RUN: not llc < %s -mtriple=x86_64-apple-darwin 2>&1 | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker; RUN: not llc < %s -mtriple=x86_64-linux-gnueabi 2>&1 | FileCheck %s 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Workerdefine i32 @get_stack() nounwind { 5*9880d681SAndroid Build Coastguard Workerentry: 6*9880d681SAndroid Build Coastguard Worker; FIXME: Include an allocatable-specific error message 7*9880d681SAndroid Build Coastguard Worker; CHECK: Invalid register name global variable 8*9880d681SAndroid Build Coastguard Worker %sp = call i32 @llvm.read_register.i32(metadata !0) 9*9880d681SAndroid Build Coastguard Worker ret i32 %sp 10*9880d681SAndroid Build Coastguard Worker} 11*9880d681SAndroid Build Coastguard Worker 12*9880d681SAndroid Build Coastguard Workerdeclare i32 @llvm.read_register.i32(metadata) nounwind 13*9880d681SAndroid Build Coastguard Worker 14*9880d681SAndroid Build Coastguard Worker!0 = !{!"eax\00"} 15