crypto: arm64/crct10dif - remove dead code
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Sun, 27 Jan 2019 09:16:55 +0000 (10:16 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 1 Feb 2019 06:45:52 +0000 (14:45 +0800)
Remove some code that is no longer called now that we make sure never
to invoke the SIMD routine with less than 16 bytes of input.

Reviewed-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm64/crypto/crct10dif-ce-core.S

index 9e82e8e8ed05424466b35ae466f213826b74db46..f7326259c40deb370e811cd584151895e19fdc96 100644 (file)
@@ -497,7 +497,6 @@ CPU_LE(     ext             v7.16b, v7.16b, v7.16b, #8      )
 
        cmp             arg3, #16
        b.eq            .L_128_done_\@          // exactly 16 left
-       b.lt            .L_less_than_16_left_\@
 
        ldr_l           q10, rk1, x8            // rk1 and rk2 in xmm10
        __pmull_pre_\p  v10
@@ -509,16 +508,6 @@ CPU_LE(    ext             v7.16b, v7.16b, v7.16b, #8      )
 
        add             arg3, arg3, #16
        b               .L_get_last_two_regs_\@
-
-.L_less_than_16_left_\@:
-       // shl r9, 4
-       adr_l           x0, tbl_shf_table + 16
-       sub             x0, x0, arg3
-       ld1             {v0.16b}, [x0]
-       movi            v9.16b, #0x80
-       eor             v0.16b, v0.16b, v9.16b
-       tbl             v7.16b, {v7.16b}, v0.16b
-       b               .L_128_done_\@
        .endm
 
 ENTRY(crc_t10dif_pmull_p8)