Skip to content

Commit 7087edb

Browse files
committed
add more test case
1 parent 412b2ff commit 7087edb

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s
2+
3+
define void @ExpandFloat(ptr %p1 ) {
4+
; CHECK: stfd 0, 8(3)
5+
; CHECK-NEXT: stfd 0, 0(3)
6+
; CHECK-NEXT: blr
7+
entry:
8+
store volatile ppc_fp128 poison, ptr %p1
9+
ret void
10+
}
11+

llvm/test/CodeGen/RISCV/poison-legalization.ll

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; RUN: llc < %s -mtriple=riscv32 | FileCheck %s
22

3-
define void @bar(ptr %p1) {
4-
; CHECK-LABEL: bar:
3+
define void @SoftenFloat(ptr %p1) {
4+
; CHECK-LABEL: SoftenFloat:
55
; CHECK: # %bb.0: # %entry
66
; CHECK-NEXT: sw a0, 4(a0)
77
; CHECK-NEXT: sw a0, 0(a0)
@@ -12,9 +12,8 @@ entry:
1212
ret void
1313
}
1414

15-
16-
define void @foo(ptr %p1 ) {
17-
; CHECK-LABEL: foo:
15+
define void @PromoteHalf(ptr %p1 ) {
16+
; CHECK-LABEL: PromoteHalf:
1817
; CHECK: # %bb.0: # %entry
1918
; CHECK-NEXT: sh a0, 0(a0)
2019
; CHECK-NEXT: ret

0 commit comments

Comments
 (0)