llvm.org GIT mirror llvm / a813b38 test / CodeGen / AArch64 / win_cst_pool.ll
a813b38

Tree @a813b38 (Download .tar.gz)

win_cst_pool.ll @a813b38

a81fbf2
078cc9c
09465e9
 
174d97b
09465e9
174d97b
 
a81fbf2
174d97b
 
a81fbf2
174d97b
 
a81fbf2
078cc9c
 
 
 
174d97b
078cc9c
 
 
 
; 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   2305843009222082561
; CHECK:      double:
; CHECK:               adrp    x8, __real@2000000000800001
; CHECK-NEXT:          ldr     d0, [x8, __real@2000000000800001]
; CHECK-NEXT:          ret

; MINGW:              .section        .rdata,"dr"
; MINGW-NEXT:         .p2align  3
; MINGW-NEXT: [[LABEL:\.LC.*]]:
; MINGW-NEXT:         .xword   2305843009222082561
; MINGW:      double:
; MINGW:               adrp    x8, [[LABEL]]
; MINGW-NEXT:          ldr     d0, [x8, [[LABEL]]]
; MINGW-NEXT:          ret