The WFI instruction and the earlier cp15 equivalent have different encodings; your compilation target may not support the WFI instruction.hths.
View all questions in Classic processors forum