Skip to content

Commit 225e270

Browse files
committed
[PowerPC] Precommit test for lowering llvm.trap on ppc64le. NFC.
1 parent 78550be commit 225e270

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
; REQUIRES: asserts
2+
; RUN: not --crash llc -verify-machineinstrs -mtriple=powerpc64le-- < %s 2>&1 | FileCheck %s
3+
; CHECK: Bad machine code: Non-terminator instruction after the first terminator
4+
5+
define i32 @test() {
6+
call void @llvm.trap()
7+
ret i32 0
8+
}
9+
10+
declare void @llvm.trap()

0 commit comments

Comments
 (0)