Skip to content

Commit 888039a

Browse files
lenaryquic-seaswara
authored andcommitted
[RISCV] Remove -riscv-asm-relax-branches Flag
This is being removed from LLVM, as the same functionality is available using `.option exact`, and llvm/llvm-project#142855 makes the same change to this test. Signed-off-by: Sam Elliott <[email protected]>
1 parent 51b7f58 commit 888039a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/RISCV/FromLLD/riscv-branch.s

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
# UNSUPPORTED: riscv64
3-
# RUN: %llvm-mc -filetype=obj -triple=riscv32-unknown-elf -mattr=-relax -riscv-asm-relax-branches=0 %s -o %t.rv32.o
3+
# RUN: %llvm-mc -filetype=obj -triple=riscv32-unknown-elf -mattr=-relax %s -o %t.rv32.o
44

55
# RUN: %link %linkopts %t.rv32.o --defsym foo=_start+4 --defsym bar=_start -o %t.rv32
66
# RUN: llvm-objdump -d %t.rv32 | FileCheck %s --check-prefix=CHECK-32
@@ -19,6 +19,8 @@
1919
# RUN: %link %linkopts %t.rv32.o --defsym foo=_start+1 --defsym bar=_start-1 -o %t.out 2>&1 | FileCheck --check-prefix=WARN-ALIGN %s
2020
# WARN-ALIGN: Relocation `R_RISCV_BRANCH' for symbol `foo' referred from `(Not Applicable)' and defined in `{{.*}}' has alignment 2 but is not aligned
2121

22+
.option exact
23+
2224
.global _start
2325
_start:
2426
beq x0, x0, foo

0 commit comments

Comments
 (0)