Skip to content

Commit

Permalink
[test] explicitly set 1 AMDGPU target for tests affected
Browse files Browse the repository at this point in the history
Explicitly set 1 AMDGPU target and do FileCheck for kernel dump on the
particular AMDGPU target.
  • Loading branch information
whchung committed Oct 4, 2017
1 parent 0b23594 commit 3d742f1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
5 changes: 2 additions & 3 deletions tests/Unit/AMDGPU/register-control.cpp
Original file line number Diff line number Diff line change
@@ -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 <hc.hpp>
Expand Down
5 changes: 2 additions & 3 deletions tests/Unit/Codegen/indirect-func-arg.cpp
Original file line number Diff line number Diff line change
@@ -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 <hc.hpp>
Expand Down
5 changes: 2 additions & 3 deletions tests/Unit/GridLaunch/register-control.cpp
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 3d742f1

Please sign in to comment.