[PATCH] D138352: [RISCV] Support .variant_cc directive for the assembler.
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 1 13:30:29 PST 2022
MaskRay added inline comments.
================
Comment at: llvm/test/MC/RISCV/directive-variant_cc.s:3
+// RUN: llvm-mc -triple riscv64 -filetype obj -o - %s | llvm-readelf -s - | FileCheck %s --check-prefix=OBJ
+// RUN: not llvm-mc -triple riscv64 -filetype asm -defsym=ERR=1 -o - %s 2>&1 | FileCheck %s --check-prefix=ERR
+
----------------
`-filetype asm` can be omitted.
================
Comment at: llvm/test/MC/RISCV/directive-variant_cc.s:2
+// RUN: llvm-mc -triple riscv64 -filetype obj -o - %s | llvm-readobj --symbols - | FileCheck %s
+// RUN: not llvm-mc -triple riscv64 -filetype asm -defsym=ERR=1 -o - %s 2>&1 | FileCheck %s --check-prefix=ERR
+
----------------
kito-cheng wrote:
> Could you add objdump check like AArch64's test: https://github.com/llvm/llvm-project/blob/main/llvm/test/MC/AArch64/directive-variant_pcs.s#L33
We need local/global definitions as the aarch64 test does.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138352/new/
https://reviews.llvm.org/D138352
More information about the llvm-commits
mailing list