2018-07-26 02:35:31 +08:00
|
|
|
; RUN: llc < %s -mtriple=aarch64-win32-msvc | FileCheck %s
|
2018-07-26 18:48:20 +08:00
|
|
|
; RUN: llc < %s -mtriple=aarch64-win32-gnu | FileCheck -check-prefix=MINGW %s
|
2018-07-24 06:15:14 +08:00
|
|
|
|
|
|
|
define double @double() {
|
2019-03-19 02:45:57 +08:00
|
|
|
ret double 0x2000000000800001
|
2018-07-24 06:15:14 +08:00
|
|
|
}
|
2019-03-19 02:45:57 +08:00
|
|
|
; CHECK: .globl __real@2000000000800001
|
|
|
|
; CHECK-NEXT: .section .rdata,"dr",discard,__real@2000000000800001
|
2018-07-26 02:35:31 +08:00
|
|
|
; CHECK-NEXT: .p2align 3
|
2019-03-19 02:45:57 +08:00
|
|
|
; CHECK-NEXT: __real@2000000000800001:
|
|
|
|
; CHECK-NEXT: .xword 2305843009222082561
|
2018-07-26 02:35:31 +08:00
|
|
|
; CHECK: double:
|
2019-03-19 02:45:57 +08:00
|
|
|
; CHECK: adrp x8, __real@2000000000800001
|
|
|
|
; CHECK-NEXT: ldr d0, [x8, __real@2000000000800001]
|
2018-07-26 02:35:31 +08:00
|
|
|
; CHECK-NEXT: ret
|
2018-07-26 18:48:20 +08:00
|
|
|
|
|
|
|
; MINGW: .section .rdata,"dr"
|
|
|
|
; MINGW-NEXT: .p2align 3
|
|
|
|
; MINGW-NEXT: [[LABEL:\.LC.*]]:
|
2019-03-19 02:45:57 +08:00
|
|
|
; MINGW-NEXT: .xword 2305843009222082561
|
2018-07-26 18:48:20 +08:00
|
|
|
; MINGW: double:
|
|
|
|
; MINGW: adrp x8, [[LABEL]]
|
|
|
|
; MINGW-NEXT: ldr d0, [x8, [[LABEL]]]
|
|
|
|
; MINGW-NEXT: ret
|