aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/COFF/ir-to-imgrel.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/COFF/ir-to-imgrel.ll')
-rw-r--r--test/MC/COFF/ir-to-imgrel.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/MC/COFF/ir-to-imgrel.ll b/test/MC/COFF/ir-to-imgrel.ll
new file mode 100644
index 0000000..39884d2
--- /dev/null
+++ b/test/MC/COFF/ir-to-imgrel.ll
@@ -0,0 +1,6 @@
+; RUN: llc -mtriple=x86_64-pc-win32 %s -o - | FileCheck %s --check-prefix=X64
+
+@__ImageBase = external global i8
+
+; X64: .quad "?x@@3HA"@IMGREL32
+@"\01?x@@3HA" = global i64 sub nsw (i64 ptrtoint (i64* @"\01?x@@3HA" to i64), i64 ptrtoint (i8* @__ImageBase to i64)), align 8