1 ; RUN: not llc < %s -mtriple=powerpc64-apple-darwin 2>&1 | FileCheck %s --check-prefix=CHECK-DARWIN 2 ; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu 2>&1 | FileCheck %s 3 4 define i64 @get_reg() nounwind { 5 entry: 6 ; FIXME: Include an allocatable-specific error message 7 ; CHECK-DARWIN: Invalid register name global variable 8 %reg = call i64 @llvm.read_register.i64(metadata !0) 9 ret i64 %reg 10 11 ; CHECK-LABEL: @get_reg 12 ; CHECK: mr 3, 2 13 } 14 15 declare i64 @llvm.read_register.i64(metadata) nounwind 16 17 !0 = metadata !{metadata !"r2\00"} 18