1 ; RUN: llc < %s -mtriple=powerpc-apple-darwin 2>&1 | FileCheck %s --check-prefix=CHECK-DARWIN 2 ; RUN: llc < %s -mtriple=powerpc64-apple-darwin 2>&1 | FileCheck %s --check-prefix=CHECK-DARWIN 3 ; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu 2>&1 | FileCheck %s 4 ; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu 2>&1 | FileCheck %s 5 6 define i32 @get_reg() nounwind { 7 entry: 8 %reg = call i32 @llvm.read_register.i32(metadata !0) 9 ret i32 %reg 10 11 ; CHECK-LABEL: @get_reg 12 ; CHECK: mr 3, 1 13 14 ; CHECK-DARWIN-LABEL: @get_reg 15 ; CHECK-DARWIN: mr r3, r1 16 } 17 18 declare i32 @llvm.read_register.i32(metadata) nounwind 19 20 !0 = metadata !{metadata !"r1\00"} 21