diff options
author | Chih-Hung Hsieh <chh@google.com> | 2015-08-19 11:44:57 -0700 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-01-08 21:46:45 -0800 |
commit | 687730892c7bed143df27df76cfb673516a5b6a4 (patch) | |
tree | 4895ca2f379b8e6f2af57f0b45673963724b5f24 /media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/vc/m4p10/src_gcc/omxVCM4P10_TransformDequantChromaDCFromPair_s.S | |
parent | 94f3841a5218c0e8d5dd19c3f92e38419f808725 (diff) | |
download | frameworks_av-687730892c7bed143df27df76cfb673516a5b6a4.zip frameworks_av-687730892c7bed143df27df76cfb673516a5b6a4.tar.gz frameworks_av-687730892c7bed143df27df76cfb673516a5b6a4.tar.bz2 |
Use unified syntax to compile with both llvm and gas.
* Remove useless stab debug info directives .func and .endfunc,
which are not recognized by clang/llvm integrated assembler.
* Replace require8 with REQUIRE8, preserve8 with PRESERVE8.
* Replace LDRNESB with LDRSBNE, LDREQSB with LDRSBEQ, etc.
* Replace VST1 {*.U8} with VST1.8 ..., VLD1 {*.U8} with VLD1.8,
and VMOV with VMOV.I8.
* New assembler output code is identical or equivalent to old gas output.
For example, the 3 references of
LDR r7, =0x80808080
in omxdl/arm_neon/vc/m4p10/src_gcc/armVCM4P10_Average_4x_Align_unsafe_s.S
produced 3 instances of
.word 0x80808080
by llvm integrated assembler but only one by gas.
Change-Id: Ifdcd5bee915a7534198d7f219bceab72045f6a22
Diffstat (limited to 'media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/vc/m4p10/src_gcc/omxVCM4P10_TransformDequantChromaDCFromPair_s.S')
-rw-r--r-- | media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/vc/m4p10/src_gcc/omxVCM4P10_TransformDequantChromaDCFromPair_s.S | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/vc/m4p10/src_gcc/omxVCM4P10_TransformDequantChromaDCFromPair_s.S b/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/vc/m4p10/src_gcc/omxVCM4P10_TransformDequantChromaDCFromPair_s.S index 5570892..74f5103 100644 --- a/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/vc/m4p10/src_gcc/omxVCM4P10_TransformDequantChromaDCFromPair_s.S +++ b/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/vc/m4p10/src_gcc/omxVCM4P10_TransformDequantChromaDCFromPair_s.S @@ -24,9 +24,9 @@ .arm .fpu neon .text + .syntax unified .global omxVCM4P10_TransformDequantChromaDCFromPair - .func omxVCM4P10_TransformDequantChromaDCFromPair omxVCM4P10_TransformDequantChromaDCFromPair: push {r4-r10, lr} ldr r9, [r0,#0] @@ -36,13 +36,13 @@ omxVCM4P10_TransformDequantChromaDCFromPair: ldrb r6, [r9], #1 unpackLoop: tst r6, #0x10 - ldrnesb r5, [r9, #1] - ldrneb r4, [r9], #2 + ldrsbne r5, [r9, #1] + ldrbne r4, [r9], #2 and r7, r8, r6, lsl #1 - ldreqsb r4, [r9], #1 + ldrsbeq r4, [r9], #1 orrne r4, r4, r5, lsl #8 tst r6, #0x20 - ldreqb r6, [r9], #1 + ldrbeq r6, [r9], #1 strh r4, [r1, r7] beq unpackLoop ldmia r1, {r3, r4} @@ -66,7 +66,6 @@ P1: add r6, pc vst1.16 {d2}, [r1] mov r0, #0 pop {r4-r10, pc} - .endfunc .LarmVCM4P10_QPDivTable: .word armVCM4P10_QPDivTable-(P0+8) |