Skip to content

Commit 8a37e17

Browse files
committed
Tweak test
1 parent 3a5683a commit 8a37e17

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

llvm/test/CodeGen/AArch64/sve-streaming-mode-cvt-int-to-fp.ll

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
22
; RUN: llc -mattr=+sve -force-streaming-compatible < %s | FileCheck %s
3-
; RUN: llc -mattr=+sme -force-streaming < %s | FileCheck %s --check-prefixes=CHECK,FORCE-STREAMING
3+
; RUN: llc -mattr=+sme -force-streaming < %s | FileCheck %s --check-prefixes=CHECK
44
; RUN: llc -force-streaming-compatible < %s | FileCheck %s --check-prefix=NONEON-NOSVE
55

66
target triple = "aarch64-unknown-linux-gnu"
@@ -225,21 +225,19 @@ entry:
225225
ret double %cvt
226226
}
227227

228-
define half @strict_convert_signed(i32 %x) {
229-
; FORCE-STREAMING-LABEL: strict_convert_signed:
230-
; FORCE-STREAMING: // %bb.0: // %entry
231-
; FORCE-STREAMING-NEXT: scvtf s0, w0
232-
; FORCE-STREAMING-NEXT: fcvt h0, s0
233-
; FORCE-STREAMING-NEXT: ret
228+
define float @strict_convert_signed(i32 %x) {
229+
; CHECK-LABEL: strict_convert_signed:
230+
; CHECK: // %bb.0: // %entry
231+
; CHECK-NEXT: scvtf s0, w0
232+
; CHECK-NEXT: ret
234233
;
235234
; NONEON-NOSVE-LABEL: strict_convert_signed:
236235
; NONEON-NOSVE: // %bb.0: // %entry
237236
; NONEON-NOSVE-NEXT: scvtf s0, w0
238-
; NONEON-NOSVE-NEXT: fcvt h0, s0
239237
; NONEON-NOSVE-NEXT: ret
240238
entry:
241-
%cvt = call half @llvm.experimental.constrained.sitofp.f16.i32(i32 %x, metadata !"round.tonearest", metadata !"fpexcept.strict") #0
242-
ret half %cvt
239+
%cvt = call float @llvm.experimental.constrained.sitofp.f32.i32(i32 %x, metadata !"round.tonearest", metadata !"fpexcept.strict") #0
240+
ret float %cvt
243241
}
244242

245243
define float @strict_convert_unsigned(i64 %x) {

0 commit comments

Comments
 (0)