Skip to content

Commit a28dc1b

Browse files
[fixup] Remove UB from a test (shift right by 32)
Change-Id: Ie80a97a0124b057394ba2b8a2f1158591af1af5a
1 parent edc49a5 commit a28dc1b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

llvm/test/CodeGen/AArch64/fixed-point-conv-vec-pat.ll

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,13 @@ define <4 x float> @f_v4_s24_inexact(<4 x i32> %u) {
3535
ret <4 x float> %v
3636
}
3737

38-
define <4 x float> @f_v4_s32(<4 x i32> %u) {
39-
; CHECK-LABEL: f_v4_s32:
38+
define <4 x float> @f_v4_s31(<4 x i32> %u) {
39+
; CHECK-LABEL: f_v4_s31:
4040
; CHECK: // %bb.0:
41-
; CHECK-NEXT: movi v0.2d, #0000000000000000
41+
; CHECK-NEXT: cmlt v0.4s, v0.4s, #0
42+
; CHECK-NEXT: scvtf v0.4s, v0.4s
4243
; CHECK-NEXT: ret
43-
%s = ashr <4 x i32> %u, <i32 32, i32 32, i32 32, i32 32>
44+
%s = ashr <4 x i32> %u, <i32 31, i32 31, i32 31, i32 31>
4445
%v = sitofp <4 x i32> %s to <4 x float>
4546
ret <4 x float> %v
4647
}

0 commit comments

Comments
 (0)