summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2018-05-05 16:37:31 +0000
committerTeresa Johnson <tejohnson@google.com>2018-05-05 16:37:31 +0000
commitfedd39045f457ee4d683ad73dc3b4fda87ca7dba (patch)
treee16604572742e5047dfc95395c888d249182fe50 /clang
parent1237b3acc960df556ebb7268633138d8e21c0633 (diff)
downloadbcm5719-llvm-fedd39045f457ee4d683ad73dc3b4fda87ca7dba.tar.gz
bcm5719-llvm-fedd39045f457ee4d683ad73dc3b4fda87ca7dba.zip
Add -target to address errors in test from r331592
The error turns out to be: Assertion failed: (Target.isCompatibleDataLayout(getDataLayout()) && "Can't create a MachineFunction using a Module with a " "Target-incompatible DataLayout attached\n"), function init, file /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-incremental/llvm/lib/CodeGen/MachineFunction.cpp, line 180. Add -target to address this. Also re-enable the test I had temporarily commented, and move it further down in case there is still a failure (since it pipes stderr to FileCheck). llvm-svn: 331597
Diffstat (limited to 'clang')
-rw-r--r--clang/test/CodeGen/thinlto-diagnostic-handler-remarks-with-hotness.ll15
1 files changed, 7 insertions, 8 deletions
diff --git a/clang/test/CodeGen/thinlto-diagnostic-handler-remarks-with-hotness.ll b/clang/test/CodeGen/thinlto-diagnostic-handler-remarks-with-hotness.ll
index 89688d78d05..09a2ec890ff 100644
--- a/clang/test/CodeGen/thinlto-diagnostic-handler-remarks-with-hotness.ll
+++ b/clang/test/CodeGen/thinlto-diagnostic-handler-remarks-with-hotness.ll
@@ -5,15 +5,9 @@
; RUN: opt -module-summary -o %t.o %s
; RUN: llvm-lto -thinlto -o %t %t.o
-; First try with pass remarks to stderr
-; Temporarily skip the next RUN/CHECK to debug bot failures
-; RUN %clang -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -mllvm -pass-remarks=inline -fdiagnostics-show-hotness -o %t2.o -c 2>&1 | FileCheck %s
-
-; CHECK tinkywinky inlined into main with cost=0 (threshold=337) (hotness: 300)
-
-; Next try YAML pass remarks file
+; First try YAML pass remarks file
; RUN: rm -f %t2.opt.yaml
-; RUN: %clang -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -fsave-optimization-record -fdiagnostics-show-hotness -o %t2.o -c
+; RUN: %clang -target x86_64-scei-ps4 -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -fsave-optimization-record -fdiagnostics-show-hotness -o %t2.o -c
; RUN: cat %t2.opt.yaml | FileCheck %s -check-prefix=YAML
; YAML: --- !Passed
@@ -32,6 +26,11 @@
; YAML-NEXT: - String: ')'
; YAML-NEXT: ...
+; Next try with pass remarks to stderr
+; RUN: %clang -target x86_64-scei-ps4 -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -mllvm -pass-remarks=inline -fdiagnostics-show-hotness -o %t2.o -c 2>&1 | FileCheck %s
+
+; CHECK: tinkywinky inlined into main with cost=0 (threshold=337) (hotness: 300)
+
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-scei-ps4"
OpenPOWER on IntegriCloud