mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
a92bacb796
This makes sure that assembly output actually can be assembled. Set the correct MCExpr relocations specifier VK_PAGEOFF - and also set VK_PAGE consistently even though it's not visible in the assembly output. Differential Revision: https://reviews.llvm.org/D94365
25 lines
953 B
LLVM
25 lines
953 B
LLVM
; RUN: llc < %s -mtriple=aarch64-win32-msvc | FileCheck %s
|
|
; RUN: llc < %s -mtriple=aarch64-win32-gnu | FileCheck -check-prefix=MINGW %s
|
|
|
|
define double @double() {
|
|
ret double 0x2000000000800001
|
|
}
|
|
; CHECK: .globl __real@2000000000800001
|
|
; CHECK-NEXT: .section .rdata,"dr",discard,__real@2000000000800001
|
|
; CHECK-NEXT: .p2align 3
|
|
; CHECK-NEXT: __real@2000000000800001:
|
|
; CHECK-NEXT: .xword 0x2000000000800001
|
|
; CHECK: double:
|
|
; CHECK: adrp x8, __real@2000000000800001
|
|
; CHECK-NEXT: ldr d0, [x8, :lo12:__real@2000000000800001]
|
|
; CHECK-NEXT: ret
|
|
|
|
; MINGW: .section .rdata,"dr"
|
|
; MINGW-NEXT: .p2align 3
|
|
; MINGW-NEXT: [[LABEL:\.LC.*]]:
|
|
; MINGW-NEXT: .xword 0x2000000000800001
|
|
; MINGW: double:
|
|
; MINGW: adrp x8, [[LABEL]]
|
|
; MINGW-NEXT: ldr d0, [x8, :lo12:[[LABEL]]]
|
|
; MINGW-NEXT: ret
|