summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/ppc-shrink-wrapping.ll
diff options
context:
space:
mode:
authorZi Xuan Wu <wuzish@cn.ibm.com>2018-12-07 05:25:16 +0000
committerZi Xuan Wu <wuzish@cn.ibm.com>2018-12-07 05:25:16 +0000
commitcf4d477b0b49b4fb3293a20fb9fed6da199cdd38 (patch)
treec135aef3a593707f1fd5ea8c2b5180383acb5225 /llvm/test/CodeGen/PowerPC/ppc-shrink-wrapping.ll
parent51df880e7068cd73008a032bcf3d5fb3eefb3073 (diff)
downloadbcm5719-llvm-cf4d477b0b49b4fb3293a20fb9fed6da199cdd38.tar.gz
bcm5719-llvm-cf4d477b0b49b4fb3293a20fb9fed6da199cdd38.zip
[PowerPC] Fix assert from machine verify pass that missing undef register flag
Fix assert about using an undefined physical register in machine instruction verify pass. The reason is that register flag undef is missing when doing transformation from If Conversion Pass. ``` Bad machine code: Using an undefined physical register - function: func_65 - basic block: %bb.0 entry (0x10024740738) - instruction: BCLR killed $cr5lt, implicit $lr8, implicit $rm, implicit undef $x3 - operand 0: killed $cr5lt LLVM ERROR: Found 1 machine code errors. ``` There are also other existing testcases with same issue. So I add -verify-machineinstrs option to open verifying. Differential Revision: https://reviews.llvm.org/D55408 llvm-svn: 348566
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/ppc-shrink-wrapping.ll')
-rw-r--r--llvm/test/CodeGen/PowerPC/ppc-shrink-wrapping.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/PowerPC/ppc-shrink-wrapping.ll b/llvm/test/CodeGen/PowerPC/ppc-shrink-wrapping.ll
index 621bda04159..8a5aa6a9119 100644
--- a/llvm/test/CodeGen/PowerPC/ppc-shrink-wrapping.ll
+++ b/llvm/test/CodeGen/PowerPC/ppc-shrink-wrapping.ll
@@ -1,5 +1,5 @@
-; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 %s -o - | FileCheck %s --check-prefix=CHECK --check-prefix=ENABLE
-; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu %s -o - -enable-shrink-wrap=false | FileCheck %s --check-prefix=CHECK --check-prefix=DISABLE
+; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 %s -o - -verify-machineinstrs | FileCheck %s --check-prefix=CHECK --check-prefix=ENABLE
+; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu %s -o - -enable-shrink-wrap=false -verify-machineinstrs | FileCheck %s --check-prefix=CHECK --check-prefix=DISABLE
;
; Note: Lots of tests use inline asm instead of regular calls.
; This allows to have a better control on what the allocation will do.
OpenPOWER on IntegriCloud