22 lines · plain
1## When a user specifies an architecture extension which conflicts with an2## architecture attribute, we use the architecture attribute instead of the3## command line option.4##5## This test uses option '-mattr=+e' to specify the "e" extension. However,6## there is an architecture attribute in the file to specify rv32i. We will7## use rv32i to assemble the file instead of rv32e.8 9# RUN: llvm-mc %s -triple=riscv32 -mattr=+e -filetype=obj -o - \10# RUN: | llvm-readobj -A - | FileCheck %s11 12.attribute arch, "rv32i2p1"13## Invalid operand for RV32E, because x16 is an invalid register for RV32E.14## Use RV32I to assemble, since it will not trigger an assembly error.15lui x16, 116 17## Check that the architecture attribute is not overridden by the command line18## option.19# CHECK: Tag: 520# CHECK-NEXT: TagName: arch21# CHECK-NEXT: Value: rv32i2p122