From 1599788f498478ef25be78b75fea52f0defaf9e4 Mon Sep 17 00:00:00 2001 From: Simon Atanasyan Date: Wed, 14 Aug 2019 16:27:07 +0000 Subject: [PATCH] [mips] Remove redundant case in the test. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368870 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/Mips/blockaddr.ll | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/test/CodeGen/Mips/blockaddr.ll b/test/CodeGen/Mips/blockaddr.ll index 113a3193a92..0e924b11003 100644 --- a/test/CodeGen/Mips/blockaddr.ll +++ b/test/CodeGen/Mips/blockaddr.ll @@ -11,9 +11,7 @@ ; RUN: llc -march=mips64el -mcpu=mips64r2 -target-abi n64 \ ; RUN: -relocation-model=static < %s | FileCheck %s -check-prefix=STATIC-N64 ; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips32 -mattr=+mips16 \ -; RUN: -relocation-model=static < %s | FileCheck %s -check-prefix=STATIC-MIPS16-1 -; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips32 -mattr=+mips16 \ -; RUN: -relocation-model=static < %s | FileCheck %s -check-prefix=STATIC-MIPS16-2 +; RUN: -relocation-model=static < %s | FileCheck %s -check-prefix=STATIC-MIPS16 @reg = common global i8* null, align 4 @@ -54,13 +52,12 @@ entry: ; STATIC-N64: dsll $[[R4:[0-9]]], $[[R3]], 16 ; STATIC-N64: daddiu $[[R5:[0-9]]], $[[R4]], %lo(.Ltmp[[L0]]) -; STATIC-MIPS16-1: .ent f -; STATIC-MIPS16-2: .ent f -; STATIC-MIPS16-1: li $[[R1_16:[0-9]+]], %hi($tmp[[TI_16:[0-9]+]]) -; STATIC-MIPS16-1: sll ${{[0-9]+}}, $[[R1_16]], 16 -; STATIC-MIPS16-2: li ${{[0-9]+}}, %lo($tmp{{[0-9]+}}) -; STATIC-MIPS16-1: jal dummy -; STATIC-MIPS16-2: jal dummy +; STATIC-MIPS16: .ent f +; STATIC-MIPS16: li $[[R0:[0-9]+]], %hi($tmp[[L0:[0-9]+]]) +; STATIC-MIPS16: sll $[[R1:[0-9]+]], $[[R0]], 16 +; STATIC-MIPS16: li $[[R2:[0-9]+]], %lo($tmp[[L0]]) +; STATIC-MIPS16: addu $[[R3:[0-9]+]], $[[R1]], $[[R2]] +; STATIC-MIPS16: jal dummy define void @f() nounwind { entry: -- 2.50.1