[lld] [HIP][LLD] add minor test variation (PR #105205)

Siu Chi Chan via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 20 11:17:05 PDT 2024


https://github.com/scchan created https://github.com/llvm/llvm-project/pull/105205

Add a minor variation of the HIP sections test by switching the order of the objects.

>From daa3410c549c8a07d0b9b36af9ceb845bf4ff8a3 Mon Sep 17 00:00:00 2001
From: Siu Chi Chan <siuchi.chan at amd.com>
Date: Wed, 7 Aug 2024 14:29:27 +0000
Subject: [PATCH] [HIP][LLD] add minor test variation

Change-Id: Ic16f8c89e36226ea88b0da01aa2c0812756c5cd1
---
 lld/test/ELF/hip-section-layout.s | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lld/test/ELF/hip-section-layout.s b/lld/test/ELF/hip-section-layout.s
index c76df50919e6d0..b76141c6b41aec 100644
--- a/lld/test/ELF/hip-section-layout.s
+++ b/lld/test/ELF/hip-section-layout.s
@@ -7,8 +7,10 @@
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux --defsym=NON_HIP_SECTIONS=1 %s -o %t.1.o
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux --defsym=HIP_SECTIONS=1 %s -o %t.2.o
-# RUN: ld.lld %t.1.o %t.2.o -o %t.s.out
-# RUN: llvm-readobj --sections %t.s.out | FileCheck %s
+# RUN: ld.lld %t.1.o %t.2.o -o %t.1.s.out
+# RUN: llvm-readobj --sections %t.1.s.out | FileCheck %s
+# RUN: ld.lld %t.2.o %t.1.o -o %t.2.s.out
+# RUN: llvm-readobj --sections %t.2.s.out | FileCheck %s
 
 .ifdef HIP_SECTIONS
 .section .hipFatBinSegment,"aw", at progbits; .space 1



More information about the llvm-commits mailing list