mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +00:00
16 lines
288 B
LLVM
16 lines
288 B
LLVM
|
; RUN: llc -relocation-model=pic -mtriple=thumbv7-unknown-linux -o - %s | FileCheck %s
|
||
|
|
||
|
@x = external global i32
|
||
|
|
||
|
; CHECK: .globl foo
|
||
|
; CHECK-NEXT: .align 2
|
||
|
define i32* @foo() {
|
||
|
ret i32* @x
|
||
|
}
|
||
|
|
||
|
; CHECK: .globl bar
|
||
|
; CHECK-NEXT: .align 1
|
||
|
define i32* @bar() {
|
||
|
ret i32* zeroinitializer
|
||
|
}
|