[llvm] c656f29 - [MC][RISCV] relocations.s - fix broken checks identified in #93673

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 5 07:51:17 PDT 2024


Author: Simon Pilgrim
Date: 2024-06-05T15:51:06+01:00
New Revision: c656f29b32c26f54b71b2fef5ccdd38427beb2ba

URL: https://github.com/llvm/llvm-project/commit/c656f29b32c26f54b71b2fef5ccdd38427beb2ba
DIFF: https://github.com/llvm/llvm-project/commit/c656f29b32c26f54b71b2fef5ccdd38427beb2ba.diff

LOG: [MC][RISCV] relocations.s - fix broken checks identified in #93673

Added: 
    

Modified: 
    llvm/test/MC/RISCV/relocations.s

Removed: 
    


################################################################################
diff  --git a/llvm/test/MC/RISCV/relocations.s b/llvm/test/MC/RISCV/relocations.s
index d9d941697704c..3cad3d44a615d 100644
--- a/llvm/test/MC/RISCV/relocations.s
+++ b/llvm/test/MC/RISCV/relocations.s
@@ -180,20 +180,20 @@ bgeu a0, a1, foo
 .L5:
 auipc a0, %tlsdesc_hi(a_symbol)
 # RELOC: R_RISCV_TLSDESC_HI20
-# INST: auipc a0, 0x0
+# INSTR: auipc a0, %tlsdesc_hi(a_symbol)
 # FIXUP: fixup A - offset: 0, value: %tlsdesc_hi(a_symbol), kind: fixup_riscv_tlsdesc_hi20
 
 lw a1, %tlsdesc_load_lo(.L5)(a0)
 # RELOC: R_RISCV_TLSDESC_LOAD_LO12
-# INST: lw a1, 0x0(a0)
+# INSTR: a1, %tlsdesc_load_lo(.L5)(a0)
 # FIXUP: fixup A - offset: 0, value: %tlsdesc_load_lo(.L5), kind: fixup_riscv_tlsdesc_load_lo12
 
 addi a0, a0, %tlsdesc_add_lo(.L5)
 # RELOC: R_RISCV_TLSDESC_ADD_LO12
-# INST: addi a0, a0, 0x0
+# INSTR: addi a0, a0, %tlsdesc_add_lo(.L5)
 # FIXUP: fixup A - offset: 0, value: %tlsdesc_add_lo(.L5), kind: fixup_riscv_tlsdesc_add_lo12
 
 jalr t0, 0(a1), %tlsdesc_call(.L5)
 # RELOC: R_RISCV_TLSDESC_CALL
-# INST: jalr t0, 0x0(a1)
+# INSTR: jalr t0, 0(a1), %tlsdesc_call(.L5)
 # FIXUP: fixup A - offset: 0, value: %tlsdesc_call(.L5), kind: fixup_riscv_tlsdesc_call


        


More information about the llvm-commits mailing list