• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1;; This test verifies llc on AIX would not crash when llvm.used and
2;; llvm.compiler.used is presented in the IR.
3
4; RUN: llc -verify-machineinstrs -mcpu=pwr4 -mtriple powerpc-ibm-aix-xcoff -data-sections=false < %s | \
5; RUN:   FileCheck %s
6
7; RUN: llc -verify-machineinstrs -mcpu=pwr4 -mtriple powerpc64-ibm-aix-xcoff -data-sections=false < %s | \
8; RUN:   FileCheck %s
9
10@keep_this = internal global i32 2, align 4
11@keep_this2 = internal global i32 3, align 4
12@llvm.used = appending global [1 x i8*] [i8* bitcast (i32* @keep_this to i8*)], section "llvm.metadata"
13@llvm.compiler.used = appending global [1 x i8*] [i8* bitcast (i32* @keep_this2 to i8*)], section "llvm.metadata"
14
15; CHECK-NOT: llvm.metadata
16; CHECK-NOT: llvm.used
17; CHECK-NOT: llvm.compiler.used
18
19; CHECK:    .lglobl keep_this
20; CHECK:  keep_this:
21; CHECK:    .lglobl keep_this2
22; CHECK:  keep_this2:
23
24; CHECK-NOT: llvm.metadata
25; CHECK-NOT: llvm.used
26; CHECK-NOT: llvm.compiler.used
27