1 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu 2>&1 | FileCheck %s
2 ; RUN: not --crash llc < %s -mtriple=powerpc64-unknown-linux-gnu 2>&1 | FileCheck %s --check-prefix=CHECK-NOTPPC32
4 define i32 @get_reg() nounwind {
6 ; CHECK-NOTPPC32: Trying to reserve an invalid register "r2".
7 %reg = call i32 @llvm.read_register.i32(metadata !0)
9 ; CHECK-LABEL: @get_reg
13 declare i32 @llvm.read_register.i32(metadata) nounwind