diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:17:04 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:17:04 +0000 |
| commit | b915e9e0fc85ba6f398b3fab0db6a81a8913af94 (patch) | |
| tree | 98b8f811c7aff2547cab8642daf372d6c59502fb /test/CodeGen/Mips/biggot.ll | |
| parent | 6421cca32f69ac849537a3cff78c352195e99f1b (diff) | |
Notes
Diffstat (limited to 'test/CodeGen/Mips/biggot.ll')
| -rw-r--r-- | test/CodeGen/Mips/biggot.ll | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/test/CodeGen/Mips/biggot.ll b/test/CodeGen/Mips/biggot.ll index aafaf55ae184..3acfa372a905 100644 --- a/test/CodeGen/Mips/biggot.ll +++ b/test/CodeGen/Mips/biggot.ll @@ -1,11 +1,12 @@ ; RUN: llc -march=mipsel -mxgot -relocation-model=pic < %s | FileCheck %s -check-prefix=O32 -; RUN: llc -march=mips64el -mcpu=mips64r2 -mattr=+n64 -mxgot -relocation-model=pic < %s | \ +; RUN: llc -march=mips64el -mcpu=mips64r2 -mxgot -relocation-model=pic < %s | \ ; RUN: FileCheck %s -check-prefix=N64 @v0 = external global i32 define void @foo1() nounwind { entry: +; O32-LABEL: foo1: ; O32: lui $[[R0:[0-9]+]], %got_hi(v0) ; O32: addu $[[R1:[0-9]+]], $[[R0]], ${{[a-z0-9]+}} ; O32: lw ${{[0-9]+}}, %got_lo(v0)($[[R1]]) @@ -13,12 +14,13 @@ entry: ; O32: addu $[[R3:[0-9]+]], $[[R2]], ${{[a-z0-9]+}} ; O32: lw ${{[0-9]+}}, %call_lo(foo0)($[[R3]]) -; N64: lui $[[R0:[0-9]+]], %got_hi(v0) -; N64: daddu $[[R1:[0-9]+]], $[[R0]], ${{[a-z0-9]+}} -; N64: ld ${{[0-9]+}}, %got_lo(v0)($[[R1]]) -; N64: lui $[[R2:[0-9]+]], %call_hi(foo0) -; N64: daddu $[[R3:[0-9]+]], $[[R2]], ${{[a-z0-9]+}} -; N64: ld ${{[0-9]+}}, %call_lo(foo0)($[[R3]]) +; N64-LABEL: foo1: +; N64-DAG: lui $[[R0:[0-9]+]], %got_hi(v0) +; N64-DAG: daddu $[[R1:[0-9]+]], $[[R0]], ${{[a-z0-9]+}} +; N64-DAG: lui $[[R2:[0-9]+]], %call_hi(foo0) +; N64-DAG: daddu $[[R3:[0-9]+]], $[[R2]], ${{[a-z0-9]+}} +; N64-DAG: ld ${{[0-9]+}}, %got_lo(v0)($[[R1]]) +; N64-DAG: ld ${{[0-9]+}}, %call_lo(foo0)($[[R3]]) %0 = load i32, i32* @v0, align 4 tail call void @foo0(i32 %0) nounwind |
