• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu 2>&1 | FileCheck %s
2; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu 2>&1 | FileCheck %s
3
4define i32 @get_reg() nounwind {
5entry:
6        %reg = call i32 @llvm.read_register.i32(metadata !0)
7  ret i32 %reg
8
9; CHECK-LABEL: @get_reg
10; CHECK: mr 3, 13
11}
12
13declare i32 @llvm.read_register.i32(metadata) nounwind
14
15!0 = !{!"r13\00"}
16