brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 410126d Raw
37 lines · plain
1# RUN: llvm-mc -filetype=obj -triple riscv32  < %s \2# RUN:     --mattr=+experimental-xqcili,+experimental-xqcilb,+experimental-xqcibi \3# RUN:     -riscv-add-build-attributes \4# RUN:     | llvm-objdump --no-print-imm-hex -M no-aliases -d - \5# RUN:     | FileCheck -check-prefix=CHECK-INSTR %s6# RUN: llvm-mc -filetype=obj -triple=riscv32 %s \7# RUN:     --mattr=+experimental-xqcili,+experimental-xqcilb,+experimental-xqcibi \8# RUN:     | llvm-readobj -r - | FileCheck %s -check-prefix=CHECK-REL9 10## This checks that, if the assembler can resolve the qc fixup, that the fixup11## is applied correctly to the instruction.12 13.L0:14# CHECK-INSTR: qc.e.beqi a0, 64, 0x015qc.e.beqi a0, 64, .L016# CHECK-INSTR: qc.e.j 0x1000001617qc.e.j func18# CHECK-INSTR: qc.e.li a0, 819qc.e.li a0, abs_sym20# CHECK-INSTR: qc.li a0, 821qc.li a0, %qc.abs20(abs_sym)22 23 24 25# This has to come after the instructions that use it or it will26# be evaluated at parse-time (avoiding fixups)27abs_sym = 828 29 30.space 0x1000000031func:32  ret33 34## All these fixups should be resolved by the assembler without emitting35## relocations.36# CHECK-REL-NOT: R_RISCV37