From 3d742f140b40bdf110bd9d92e6a448d2891630d8 Mon Sep 17 00:00:00 2001 From: "Wen-Heng (Jack) Chung" Date: Wed, 4 Oct 2017 16:00:08 +0000 Subject: [PATCH] [test] explicitly set 1 AMDGPU target for tests affected Explicitly set 1 AMDGPU target and do FileCheck for kernel dump on the particular AMDGPU target. --- tests/Unit/AMDGPU/register-control.cpp | 5 ++--- tests/Unit/Codegen/indirect-func-arg.cpp | 5 ++--- tests/Unit/GridLaunch/register-control.cpp | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/tests/Unit/AMDGPU/register-control.cpp b/tests/Unit/AMDGPU/register-control.cpp index 1fae4a00e73..cb69a239a4e 100644 --- a/tests/Unit/AMDGPU/register-control.cpp +++ b/tests/Unit/AMDGPU/register-control.cpp @@ -1,6 +1,5 @@ -// RUN: %hc %s -o %t.out -Xlinker -dump-llvm -Xlinker -dump-dir=%T -// RUN: %llvm-dis %T/dump*.opt.bc -// RUN: cat %T/dump*.opt.ll| %FileCheck %s +// RUN: %hc %s -o %t.out -Xlinker -dump-llvm -Xlinker -dump-dir=%T --amdgpu-target=gfx803 +// RUN: %llvm-dis %T/dump-gfx803.opt.bc -f -o - | %FileCheck %s // RUN: %t.out #include diff --git a/tests/Unit/Codegen/indirect-func-arg.cpp b/tests/Unit/Codegen/indirect-func-arg.cpp index 6b0777a8037..ced94d39a3a 100644 --- a/tests/Unit/Codegen/indirect-func-arg.cpp +++ b/tests/Unit/Codegen/indirect-func-arg.cpp @@ -1,8 +1,7 @@ // Make a unique directory to save the dumped IR. // RUN: mkdir -p %T/indirect-func-arg -// RUN: %hc %s -o %t.out -Xlinker -dump-llvm -Xlinker -dump-dir=%T/indirect-func-arg -// RUN: %llvm-dis %T/indirect-func-arg/dump*.opt.bc -// RUN: cat %T/indirect-func-arg/dump*.opt.ll| %FileCheck %s +// RUN: %hc %s -o %t.out -Xlinker -dump-llvm -Xlinker -dump-dir=%T/indirect-func-arg --amdgpu-target=gfx803 +// RUN: %llvm-dis %T/indirect-func-arg/dump-gfx803.opt.bc -f -o - | %FileCheck %s // RUN: %t.out #include diff --git a/tests/Unit/GridLaunch/register-control.cpp b/tests/Unit/GridLaunch/register-control.cpp index cafa2b32919..62e1f16a65b 100644 --- a/tests/Unit/GridLaunch/register-control.cpp +++ b/tests/Unit/GridLaunch/register-control.cpp @@ -1,6 +1,5 @@ -// RUN: %hc -lhc_am %s -o %t.out -Xlinker -dump-llvm -Xlinker -dump-dir=%T -// RUN: %llvm-dis %T/dump*.opt.bc -// RUN: cat %T/dump*.opt.ll | %FileCheck %s +// RUN: %hc -lhc_am %s -o %t.out -Xlinker -dump-llvm -Xlinker -dump-dir=%T --amdgpu-target=gfx803 +// RUN: %llvm-dis %T/dump-gfx803.opt.bc -f -o - | %FileCheck %s // RUN: %t.out #include "grid_launch.hpp"