1 ;; This test verifies llc on AIX would not crash when llvm.used and
2 ;; llvm.compiler.used is presented in the IR.
4 ; RUN: llc -verify-machineinstrs -mcpu=pwr4 -mtriple powerpc-ibm-aix-xcoff -data-sections=false < %s | \
7 ; RUN: llc -verify-machineinstrs -mcpu=pwr4 -mtriple powerpc64-ibm-aix-xcoff -data-sections=false < %s | \
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 ptr] [ptr @keep_this], section "llvm.metadata"
13 @llvm.compiler.used = appending global [1 x ptr] [ptr @keep_this2], section "llvm.metadata"
15 ; CHECK-NOT: llvm.metadata
16 ; CHECK-NOT: llvm.used
17 ; CHECK-NOT: llvm.compiler.used
19 ; CHECK: .lglobl keep_this
21 ; CHECK: .lglobl keep_this2
24 ; CHECK-NOT: llvm.metadata
25 ; CHECK-NOT: llvm.used
26 ; CHECK-NOT: llvm.compiler.used