1# RUN: llvm-mc -triple riscv32 -mattr=-relax -riscv-no-aliases < %s \ 2# RUN: | FileCheck -check-prefix=CHECK-INST %s 3# RUN: llvm-mc -filetype=obj -triple riscv32 < %s \ 4# RUN: | llvm-readobj -r - | FileCheck -check-prefix=CHECK-RELOC %s 5 6# RUN: llvm-mc -triple riscv32 -mattr=-relax -riscv-no-aliases \ 7# RUN: -position-independent < %s | FileCheck -check-prefix=CHECK-INST %s 8# RUN: llvm-mc -filetype=obj -triple riscv32 -position-independent < %s \ 9# RUN: | llvm-readobj -r - | FileCheck -check-prefix=CHECK-RELOC %s 10 11# RUN: llvm-mc -triple riscv64 -mattr=-relax -riscv-no-aliases < %s \ 12# RUN: | FileCheck -check-prefix=CHECK-INST %s 13# RUN: llvm-mc -filetype=obj -triple riscv64 < %s \ 14# RUN: | llvm-readobj -r - | FileCheck -check-prefix=CHECK-RELOC %s 15 16# RUN: llvm-mc -triple riscv64 -mattr=-relax -riscv-no-aliases \ 17# RUN: -position-independent < %s | FileCheck -check-prefix=CHECK-INST %s 18# RUN: llvm-mc -filetype=obj -triple riscv64 -position-independent < %s \ 19# RUN: | llvm-readobj -r - | FileCheck -check-prefix=CHECK-RELOC %s 20 21.option pic 22# CHECK-INST: .option pic 23 24la s0, symbol 25# CHECK-INST: auipc s0, %got_pcrel_hi(symbol) 26# CHECK-INST: l{{[wd]}} s0, %pcrel_lo(.Lpcrel_hi0)(s0) 27# CHECK-RELOC: R_RISCV_GOT_HI20 symbol 0x0 28# CHECK-RELOC: R_RISCV_PCREL_LO12_I .Lpcrel_hi0 0x0 29