[llvm-branch-commits] [llvm] 40633cc - [PowerPC] Enhance test for PR45297. NFC.
Tom Stellard via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Apr 22 15:00:21 PDT 2020
Author: Kai Luo
Date: 2020-04-22T14:54:22-07:00
New Revision: 40633cc752a4ffecac22c6134761464bdbc8e10a
URL: https://github.com/llvm/llvm-project/commit/40633cc752a4ffecac22c6134761464bdbc8e10a
DIFF: https://github.com/llvm/llvm-project/commit/40633cc752a4ffecac22c6134761464bdbc8e10a.diff
LOG: [PowerPC] Enhance test for PR45297. NFC.
(cherry picked from commit 351b19231554d4dba29c42c798176f1ff3286a32)
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-branch-commits
mailing list