The WFI instruction and the earlier cp15 equivalent have different encodings; your compilation target may not support the WFI instruction.hths.