llvm-for-llvmta/test/CodeGen/PowerPC/indirect-hidden.ll

21 lines
393 B
LLVM
Raw Normal View History

2022-04-25 10:02:23 +02:00
; RUN: llc -verify-machineinstrs -mtriple=powerpc-unknown-linux-gnu < %s | FileCheck %s
@a = external hidden global i32
@b = external global i32
define i32* @get_a() {
ret i32* @a
}
define i32* @get_b() {
ret i32* @b
}
; CHECK: .globl get_a
; CHECK: .p2align 2
; CHECK: .type get_a,@function
; CHECK: .globl get_b
; CHECK: .p2align 2
; CHECK: .type get_b,@function
; CHECK: .hidden a