summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2018-07-23 22:15:14 +0000
committerMartin Storsjo <martin@martin.st>2018-07-23 22:15:14 +0000
commitc2b701408e3a94df1dcdc96ed2891ca916441a87 (patch)
treeb140732d811dfe7f7b1678012dd02894e1def25b /llvm/test/CodeGen
parent64142ba98b4fec52f29fa15ed8c7c1e823bee8b1 (diff)
downloadbcm5719-llvm-c2b701408e3a94df1dcdc96ed2891ca916441a87.tar.gz
bcm5719-llvm-c2b701408e3a94df1dcdc96ed2891ca916441a87.zip
[AArch64] Use MCAsmInfoMicrosoft and MCAsmInfoGNUCOFF as base classes
This matches the structure used on X86 and ARM. This requires a little bit of duplication of the parts that are equal in both AArch64 COFF variants though. Before SVN r335286, these classes didn't add anything that MCAsmInfoCOFF didn't, but now they do. This makes AArch64 match X86 in how comdat is used for float constants for MinGW. Differential Revision: https://reviews.llvm.org/D49637 llvm-svn: 337755
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/AArch64/win_cst_pool.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AArch64/win_cst_pool.ll b/llvm/test/CodeGen/AArch64/win_cst_pool.ll
new file mode 100644
index 00000000000..049e252a3a8
--- /dev/null
+++ b/llvm/test/CodeGen/AArch64/win_cst_pool.ll
@@ -0,0 +1,13 @@
+; RUN: llc < %s -mtriple=aarch64-win32-gnu | FileCheck -check-prefix=MINGW %s
+
+define double @double() {
+ ret double 0x0000000000800000
+}
+; MINGW: .section .rdata,"dr"
+; MINGW-NEXT: .p2align 3
+; MINGW-NEXT: [[LABEL:\.LC.*]]:
+; MINGW-NEXT: .xword 8388608
+; MINGW: double:
+; MINGW: adrp x8, [[LABEL]]
+; MINGW-NEXT: ldr d0, [x8, [[LABEL]]]
+; MINGW-NEXT: ret
OpenPOWER on IntegriCloud