• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: not llc < %s -mtriple=powerpc64-apple-darwin 2>&1 | FileCheck %s
2; RUN: not llc < %s -mtriple=powerpc64-unknown-linux-gnu 2>&1 | FileCheck %s
3
4define i64 @get_reg() nounwind {
5entry:
6; FIXME: Include an allocatable-specific error message
7; CHECK: Invalid register name global variable
8        %reg = call i64 @llvm.read_register.i64(metadata !0)
9  ret i64 %reg
10}
11
12declare i64 @llvm.read_register.i64(metadata) nounwind
13
14!0 = !{!"r2\00"}
15