Skip to content

[Sparc] V9 only instructions are defined for Sparc V8 #142388

Open
@Rot127

Description

@Rot127

The LDX and STX instructions are not defined in the Sparc v8 ISA. But assemble in in LLVM instead of being invalid.

echo "ldx [%g1], %o7 ; stx %o7, [%g1]"  | llvm-mc --assemble --triple=sparc --show-encoding
	.text
	ldx [%g1], %o7                          ! encoding: [0xde,0x58,0x40,0x00]
	stx %o7, [%g1]                          ! encoding: [0xde,0x70,0x40,0x00]

cc @koachan

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions