Skip to content

Commit 8530c8c

Browse files
arichardsonresistor
authored andcommitted
[CHERI][ELF] Add missing REQUIRES to tests
1 parent b524df9 commit 8530c8c

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

lld/test/ELF/cheri/caprelocs-surrounding-symbol.s

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## Check that lld uses the size of surrounding symbols for capability relocations
22
## against STT_NONE targets with size==0.
3+
# REQUIRES: riscv
34
# RUN: %riscv64_cheri_purecap_llvm-mc -filetype=obj %s -o %t.o
45
# RUN: llvm-readobj --symbols --relocations --cap-relocs --expand-relocs %t.o | FileCheck %s --check-prefix=OBJ-RELOCS
56
# RUN: ld.lld -pie %t.o -o %t.exe -e fn1 --verbose 2>&1 | FileCheck %s --check-prefix=LLD-OUTPUT "--implicit-check-not=warning:"

lld/test/ELF/cheri/exception-table.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
; REQUIRES: riscv
12
; RUN: split-file %s %t
23
; RUN: %cheri_purecap_llc --relocation-model=pic < %t/input.ll -filetype=obj -o %t/mips.o
34
; RUN: %cheri_purecap_llc --relocation-model=pic < %t/weak_override.ll -filetype=obj -o %t/mips-override.o

lld/test/ELF/cheri/mips-libcxxrt-crash-cfi.s

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## This used to crash ld.lld for CHERI MIPS with "internal linker error: wrote incorrect addend value 0x1043000000000 instead of 0x10430"
22
## The crash no longer occurs after b2559f2f5ca950e917253b156bfd08ede5577cd5
3+
# REQUIRES: mips
34
# RUN: llvm-mc -filetype=obj -triple=mips64-unknown-freebsd --position-independent %s -o %t.o
45
# RUN: ld.lld --eh-frame-hdr --shared -z notext -o %t.so %t.o
56
# RUN: llvm-mc -filetype=obj -triple=mips64-unknown-freebsd %s -o %t-nopic.o

0 commit comments

Comments
 (0)