Skip to content

Commit 5888da1

Browse files
kumargalapaulusmack
authored andcommitted
powerpc: Fix building of feature-fixup tests on ppc32
We need to use PPC_LCMPI otherwise we get compile errors like: arch/powerpc/lib/feature-fixups-test.S: Assembler messages: arch/powerpc/lib/feature-fixups-test.S:142: Error: Unrecognized opcode: `cmpdi' arch/powerpc/lib/feature-fixups-test.S:149: Error: Unrecognized opcode: `cmpdi' arch/powerpc/lib/feature-fixups-test.S:164: Error: Unrecognized opcode: `cmpdi' Signed-off-by: Kumar Gala <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
1 parent e17a256 commit 5888da1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/powerpc/lib/feature-fixups-test.S

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,14 +139,14 @@ globl(ftr_fixup_test6)
139139
1: or 1,1,1
140140
BEGIN_FTR_SECTION
141141
or 5,5,5
142-
2: cmpdi r3,0
142+
2: PPC_LCMPI r3,0
143143
beq 4f
144144
blt 2b
145145
b 1b
146146
b 4f
147147
FTR_SECTION_ELSE
148148
2: or 2,2,2
149-
cmpdi r3,1
149+
PPC_LCMPI r3,1
150150
beq 3f
151151
blt 2b
152152
b 3f
@@ -161,7 +161,7 @@ globl(end_ftr_fixup_test6)
161161
globl(ftr_fixup_test6_expected)
162162
1: or 1,1,1
163163
2: or 2,2,2
164-
cmpdi r3,1
164+
PPC_LCMPI r3,1
165165
beq 3f
166166
blt 2b
167167
b 3f

0 commit comments

Comments
 (0)