summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC
diff options
context:
space:
mode:
authorKai Luo <lkail@cn.ibm.com>2020-03-27 03:30:33 +0000
committerTom Stellard <tstellar@redhat.com>2020-04-22 14:54:22 -0700
commit40633cc752a4ffecac22c6134761464bdbc8e10a (patch)
tree87279ad3cdeb8b211e21349210bb5ec6d5eef2e2 /llvm/test/CodeGen/PowerPC
parent5086fa033344b5b16db92c9aa75be1e061921842 (diff)
downloadbcm5719-llvm-40633cc752a4ffecac22c6134761464bdbc8e10a.tar.gz
bcm5719-llvm-40633cc752a4ffecac22c6134761464bdbc8e10a.zip
[PowerPC] Enhance test for PR45297. NFC.
(cherry picked from commit 351b19231554d4dba29c42c798176f1ff3286a32)
Diffstat (limited to 'llvm/test/CodeGen/PowerPC')
-rw-r--r--llvm/test/CodeGen/PowerPC/pr45297.ll11
1 files changed, 7 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/PowerPC/pr45297.ll b/llvm/test/CodeGen/PowerPC/pr45297.ll
index 71c19744fb7..97d05efe049 100644
--- a/llvm/test/CodeGen/PowerPC/pr45297.ll
+++ b/llvm/test/CodeGen/PowerPC/pr45297.ll
@@ -1,10 +1,13 @@
-; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \
-; RUN: -mattr=+altivec -mattr=-power8-vector -mattr=-vsx < %s | FileCheck %s
-; XFAIL: *
+; RUN: not --crash llc -verify-machineinstrs \
+; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mattr=+altivec \
+; RUN: -mattr=-power8-vector -mattr=-vsx < %s 2>&1 | FileCheck %s
+; CHECK: LLVM ERROR: Cannot select: t{{[0-9]+}}: ch = PPCISD::ST_VSR_SCAL_INT<(store 4 into @Global)>
+
+@Global = dso_local global i32 55, align 4
define dso_local void @test(float %0) local_unnamed_addr {
entry:
%1 = fptosi float %0 to i32
- store i32 %1, i32* undef, align 4
+ store i32 %1, i32* @Global, align 4
ret void
}
OpenPOWER on IntegriCloud