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