[llvm] 351b192 - [PowerPC] Enhance test for PR45297. NFC.
Kai Luo via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 26 21:45:58 PDT 2020
Author: Kai Luo
Date: 2020-03-27T04:45:21Z
New Revision: 351b19231554d4dba29c42c798176f1ff3286a32
URL: https://github.com/llvm/llvm-project/commit/351b19231554d4dba29c42c798176f1ff3286a32
DIFF: https://github.com/llvm/llvm-project/commit/351b19231554d4dba29c42c798176f1ff3286a32.diff
LOG: [PowerPC] Enhance test for PR45297. NFC.
Added:
Modified:
llvm/test/CodeGen/PowerPC/pr45297.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/PowerPC/pr45297.ll b/llvm/test/CodeGen/PowerPC/pr45297.ll
index 71c19744fb70..97d05efe0498 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)>
+
+ at 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
}
More information about the llvm-commits
mailing list