From 5293241f1516f39fef52869165030a6ee6011825 Mon Sep 17 00:00:00 2001 From: Manman Ren Date: Wed, 6 Jul 2016 22:01:28 +0000 Subject: [PATCH] Add testing coverage for r274582. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274693 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/AArch64/arm64-collect-loh.ll | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/test/CodeGen/AArch64/arm64-collect-loh.ll b/test/CodeGen/AArch64/arm64-collect-loh.ll index 59147d401a3..3f633ba2a44 100644 --- a/test/CodeGen/AArch64/arm64-collect-loh.ll +++ b/test/CodeGen/AArch64/arm64-collect-loh.ll @@ -654,4 +654,25 @@ define void @uninterestingSub(i8* nocapture %row) #0 { ret void } +@.str.89 = external unnamed_addr constant [12 x i8], align 1 +@.str.90 = external unnamed_addr constant [5 x i8], align 1 +; CHECK-LABEL: test_r274582 +define void @test_r274582() { +entry: + br i1 undef, label %if.then.i, label %if.end.i +if.then.i: + ret void +if.end.i: +; CHECK: .loh AdrpAdrp Lloh91, Lloh93 +; CHECK: .loh AdrpLdr Lloh91, Lloh92 +; CHECK: .loh AdrpLdrGot Lloh93, Lloh95 +; CHECK: .loh AdrpLdrGot Lloh94, Lloh96 + %mul.i.i.i = fmul double undef, 1.000000e-06 + %add.i.i.i = fadd double undef, %mul.i.i.i + %sub.i.i = fsub double %add.i.i.i, undef + call void (i8*, ...) @callee(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.89, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.90, i64 0, i64 0), double %sub.i.i) + unreachable +} +declare void @callee(i8* nocapture readonly, ...) + attributes #0 = { "target-cpu"="cyclone" } -- 2.11.0