Skip to content

Commit 40633cc

Browse files
Kai Luotstellar
authored andcommitted
[PowerPC] Enhance test for PR45297. NFC.
(cherry picked from commit 351b192)
1 parent 5086fa0 commit 40633cc

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

llvm/test/CodeGen/PowerPC/pr45297.ll

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \
2-
; RUN: -mattr=+altivec -mattr=-power8-vector -mattr=-vsx < %s | FileCheck %s
3-
; XFAIL: *
1+
; RUN: not --crash llc -verify-machineinstrs \
2+
; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mattr=+altivec \
3+
; RUN: -mattr=-power8-vector -mattr=-vsx < %s 2>&1 | FileCheck %s
4+
; CHECK: LLVM ERROR: Cannot select: t{{[0-9]+}}: ch = PPCISD::ST_VSR_SCAL_INT<(store 4 into @Global)>
5+
6+
@Global = dso_local global i32 55, align 4
47

58
define dso_local void @test(float %0) local_unnamed_addr {
69
entry:
710
%1 = fptosi float %0 to i32
8-
store i32 %1, i32* undef, align 4
11+
store i32 %1, i32* @Global, align 4
912
ret void
1013
}

0 commit comments

Comments
 (0)