X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FCodeGen%2FMips%2Fdsp-patterns.ll;h=837c0d8bfc52b1cb397f47c1ccf3e2b0aab6e00e;hb=30e21e7109a6467f2c5e60521c5ec849f6aededb;hp=eeb7140ca2cb6ba0de6c83d3cbf5295dc7810cd8;hpb=d597263b9442923bacc24f26a8510fb69f992864;p=oota-llvm.git diff --git a/test/CodeGen/Mips/dsp-patterns.ll b/test/CodeGen/Mips/dsp-patterns.ll index eeb7140ca2c..837c0d8bfc5 100644 --- a/test/CodeGen/Mips/dsp-patterns.ll +++ b/test/CodeGen/Mips/dsp-patterns.ll @@ -1,37 +1,37 @@ ; RUN: llc -march=mips -mattr=dsp < %s | FileCheck %s -check-prefix=R1 ; RUN: llc -march=mips -mattr=dspr2 < %s | FileCheck %s -check-prefix=R2 -; R1: test_lbux: +; R1-LABEL: test_lbux: ; R1: lbux ${{[0-9]+}} define zeroext i8 @test_lbux(i8* nocapture %b, i32 %i) { entry: - %add.ptr = getelementptr inbounds i8* %b, i32 %i - %0 = load i8* %add.ptr, align 1 + %add.ptr = getelementptr inbounds i8, i8* %b, i32 %i + %0 = load i8, i8* %add.ptr, align 1 ret i8 %0 } -; R1: test_lhx: +; R1-LABEL: test_lhx: ; R1: lhx ${{[0-9]+}} define signext i16 @test_lhx(i16* nocapture %b, i32 %i) { entry: - %add.ptr = getelementptr inbounds i16* %b, i32 %i - %0 = load i16* %add.ptr, align 2 + %add.ptr = getelementptr inbounds i16, i16* %b, i32 %i + %0 = load i16, i16* %add.ptr, align 2 ret i16 %0 } -; R1: test_lwx: +; R1-LABEL: test_lwx: ; R1: lwx ${{[0-9]+}} define i32 @test_lwx(i32* nocapture %b, i32 %i) { entry: - %add.ptr = getelementptr inbounds i32* %b, i32 %i - %0 = load i32* %add.ptr, align 4 + %add.ptr = getelementptr inbounds i32, i32* %b, i32 %i + %0 = load i32, i32* %add.ptr, align 4 ret i32 %0 } -; R1: test_add_v2q15_: +; R1-LABEL: test_add_v2q15_: ; R1: addq.ph ${{[0-9]+}} define { i32 } @test_add_v2q15_(i32 %a.coerce, i32 %b.coerce) { @@ -44,7 +44,7 @@ entry: ret { i32 } %.fca.0.insert } -; R1: test_sub_v2q15_: +; R1-LABEL: test_sub_v2q15_: ; R1: subq.ph ${{[0-9]+}} define { i32 } @test_sub_v2q15_(i32 %a.coerce, i32 %b.coerce) { @@ -57,11 +57,11 @@ entry: ret { i32 } %.fca.0.insert } -; R2: test_mul_v2q15_: +; R2-LABEL: test_mul_v2q15_: ; R2: mul.ph ${{[0-9]+}} ; mul.ph is an R2 instruction. Check that multiply node gets expanded. -; R1: test_mul_v2q15_: +; R1-LABEL: test_mul_v2q15_: ; R1: mul ${{[0-9]+}} ; R1: mul ${{[0-9]+}} @@ -75,7 +75,7 @@ entry: ret { i32 } %.fca.0.insert } -; R1: test_add_v4i8_: +; R1-LABEL: test_add_v4i8_: ; R1: addu.qb ${{[0-9]+}} define { i32 } @test_add_v4i8_(i32 %a.coerce, i32 %b.coerce) { @@ -88,7 +88,7 @@ entry: ret { i32 } %.fca.0.insert } -; R1: test_sub_v4i8_: +; R1-LABEL: test_sub_v4i8_: ; R1: subu.qb ${{[0-9]+}} define { i32 } @test_sub_v4i8_(i32 %a.coerce, i32 %b.coerce) { @@ -102,7 +102,7 @@ entry: } ; DSP-ASE doesn't have a v4i8 multiply instruction. Check that multiply node gets expanded. -; R2: test_mul_v4i8_: +; R2-LABEL: test_mul_v4i8_: ; R2: mul ${{[0-9]+}} ; R2: mul ${{[0-9]+}} ; R2: mul ${{[0-9]+}} @@ -118,7 +118,7 @@ entry: ret { i32 } %.fca.0.insert } -; R1: test_addsc: +; R1-LABEL: test_addsc: ; R1: addsc ${{[0-9]+}} ; R1: addwc ${{[0-9]+}} @@ -128,7 +128,7 @@ entry: ret i64 %add } -; R1: shift1_v2i16_shl_: +; R1-LABEL: shift1_v2i16_shl_: ; R1: shll.ph ${{[0-9]+}}, ${{[0-9]+}}, 15 define { i32 } @shift1_v2i16_shl_(i32 %a0.coerce) { @@ -140,7 +140,7 @@ entry: ret { i32 } %.fca.0.insert } -; R1: shift1_v2i16_sra_: +; R1-LABEL: shift1_v2i16_sra_: ; R1: shra.ph ${{[0-9]+}}, ${{[0-9]+}}, 15 define { i32 } @shift1_v2i16_sra_(i32 %a0.coerce) { @@ -152,9 +152,9 @@ entry: ret { i32 } %.fca.0.insert } -; R1: shift1_v2ui16_srl_: +; R1-LABEL: shift1_v2ui16_srl_: ; R1-NOT: shrl.ph -; R2: shift1_v2ui16_srl_: +; R2-LABEL: shift1_v2ui16_srl_: ; R2: shrl.ph ${{[0-9]+}}, ${{[0-9]+}}, 15 define { i32 } @shift1_v2ui16_srl_(i32 %a0.coerce) { @@ -166,7 +166,7 @@ entry: ret { i32 } %.fca.0.insert } -; R1: shift1_v4i8_shl_: +; R1-LABEL: shift1_v4i8_shl_: ; R1: shll.qb ${{[0-9]+}}, ${{[0-9]+}}, 7 define { i32 } @shift1_v4i8_shl_(i32 %a0.coerce) { @@ -178,9 +178,9 @@ entry: ret { i32 } %.fca.0.insert } -; R1: shift1_v4i8_sra_: +; R1-LABEL: shift1_v4i8_sra_: ; R1-NOT: shra.qb -; R2: shift1_v4i8_sra_: +; R2-LABEL: shift1_v4i8_sra_: ; R2: shra.qb ${{[0-9]+}}, ${{[0-9]+}}, 7 define { i32 } @shift1_v4i8_sra_(i32 %a0.coerce) { @@ -192,7 +192,7 @@ entry: ret { i32 } %.fca.0.insert } -; R1: shift1_v4ui8_srl_: +; R1-LABEL: shift1_v4ui8_srl_: ; R1: shrl.qb ${{[0-9]+}}, ${{[0-9]+}}, 7 define { i32 } @shift1_v4ui8_srl_(i32 %a0.coerce) { @@ -206,7 +206,7 @@ entry: ; Check that shift node is expanded if splat element size is not 16-bit. ; -; R1: test_vector_splat_imm_v2q15: +; R1-LABEL: test_vector_splat_imm_v2q15: ; R1-NOT: shll.ph define { i32 } @test_vector_splat_imm_v2q15(i32 %a.coerce) { @@ -220,7 +220,7 @@ entry: ; Check that shift node is expanded if splat element size is not 8-bit. ; -; R1: test_vector_splat_imm_v4i8: +; R1-LABEL: test_vector_splat_imm_v4i8: ; R1-NOT: shll.qb define { i32 } @test_vector_splat_imm_v4i8(i32 %a.coerce) { @@ -234,7 +234,7 @@ entry: ; Check that shift node is expanded if shift amount doesn't fit in 4-bit sa field. ; -; R1: test_shift_amount_v2q15: +; R1-LABEL: test_shift_amount_v2q15: ; R1-NOT: shll.ph define { i32 } @test_shift_amount_v2q15(i32 %a.coerce) { @@ -248,7 +248,7 @@ entry: ; Check that shift node is expanded if shift amount doesn't fit in 3-bit sa field. ; -; R1: test_shift_amount_v4i8: +; R1-LABEL: test_shift_amount_v4i8: ; R1-NOT: shll.qb define { i32 } @test_shift_amount_v4i8(i32 %a.coerce) {