Skip to content

error: invalid operand for instruction in arch/arm/vfp/vfpinstr.h #306

Closed
@agners

Description

@agners

Compiling with integrated-as for c files fails for arch/arm/kernel/perf_event_v7.c.

arch/arm/kernel/perf_event_v7.c:1377:15: error: invalid operand for instruction
        asm volatile("mcr p10, 7, %0, c11, c0, 0" : : "r" (val));
                     ^
<inline asm>:1:6: note: instantiated into assembly here
        mcr p10, 7, r0, c11, c0, 0
            ^
arch/arm/kernel/perf_event_v7.c:1371:15: error: invalid operand for instruction
        asm volatile("mrc p10, 7, %0, c11, c0, 0" : "=r" (val));
                     ^
<inline asm>:1:6: note: instantiated into assembly here
        mrc p10, 7, r6, c11, c0, 0
            ^

Update: Changed this ticket to only reflect perf_event_v7.c problem. The issue of arch/arm/vfp/vfpmodule.c has been moved to #905.

Metadata

Metadata

Assignees

Labels

[ARCH] arm32This bug impacts ARCH=arm[BUG] llvmA bug that should be fixed in upstream LLVM[FIXED][LLVM] 11This bug was fixed in LLVM 11.0[TOOL] integrated-asThe issue is relevant to LLVM integrated assembler

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions