• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3
4define i32 @get_reg() nounwind {
5entry:
6; FIXME: Include an allocatable-specific error message
7; CHECK-NOTPPC32: Invalid register name global variable
8        %reg = call i32 @llvm.read_register.i32(metadata !0)
9  ret i32 %reg
10
11; CHECK-LABEL: @get_reg
12; CHECK: mr 3, 2
13}
14
15declare i32 @llvm.read_register.i32(metadata) nounwind
16
17!0 = !{!"r2\00"}
18