summaryrefslogtreecommitdiffstats
path: root/lld/test/COFF/Inputs/lto-lazy-reference-quadruple.ll
diff options
context:
space:
mode:
Diffstat (limited to 'lld/test/COFF/Inputs/lto-lazy-reference-quadruple.ll')
-rw-r--r--lld/test/COFF/Inputs/lto-lazy-reference-quadruple.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/lld/test/COFF/Inputs/lto-lazy-reference-quadruple.ll b/lld/test/COFF/Inputs/lto-lazy-reference-quadruple.ll
new file mode 100644
index 00000000000..99c1d2bdbc5
--- /dev/null
+++ b/lld/test/COFF/Inputs/lto-lazy-reference-quadruple.ll
@@ -0,0 +1,16 @@
+target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
+target triple = "i686-pc-windows-msvc18.0.0"
+
+define double @quadruple(double %x) {
+entry:
+ ; The symbol __real@40800000 is used to materialize the 4.0 constant.
+ %mul = fmul double %x, 4.0
+ ret double %mul
+}
+
+
+declare void @dummy()
+define void @f() {
+ call void @dummy()
+ ret void
+}
OpenPOWER on IntegriCloud