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