Skip to content

Commit b38a166

Browse files
authored
Merge pull request intel#67 from frasercrmck/fix-some-llvm-17-tests
[vecz] Update some lit tests to account for LLVM 17
2 parents 97c6b65 + e517ff7 commit b38a166

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

llvm/lib/SYCLNativeCPUUtils/compiler_passes/vecz/test/lit/llvm/ScalableVectors/broadcast_vector.ll

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
1616

1717
; NOTE: Assertions have been autogenerated by scripts/testing/update_veczc_checks.py
18-
; REQUIRES: llvm-13+
1918
; RUN: veczc -vecz-scalable -vecz-simd-width=4 -S < %s | FileCheck %s
2019

2120
target triple = "spir64-unknown-unknown"
@@ -29,7 +28,7 @@ entry:
2928
%arrayidx = getelementptr inbounds <4 x float>, <4 x float> addrspace(1)* %in, i64 %call
3029
%0 = bitcast <4 x float> addrspace(1)* %arrayidx to <4 x float> addrspace(1)*
3130
%1 = load <4 x float>, <4 x float> addrspace(1)* %0, align 16
32-
%2 = fadd <4 x float> %1, <float 0x7FF0000020000000, float 0x7FF0000020000000, float 0x7FF0000020000000, float 0x7FF0000020000000>
31+
%2 = fadd <4 x float> %1, <float 0x7FF8000020000000, float 0x7FF8000020000000, float 0x7FF8000020000000, float 0x7FF8000020000000>
3332
%arrayidx3 = getelementptr inbounds <4 x float>, <4 x float> addrspace(1)* %out, i64 %call
3433
store <4 x float> %2, <4 x float> addrspace(1)* %arrayidx3, align 16
3534
ret void
@@ -102,7 +101,7 @@ entry:
102101
; CHECK-NEXT: entry:
103102
; CHECK-NEXT: [[CALL:%.*]] = tail call spir_func i64 @_Z13get_global_idj(i32 0)
104103
; CHECK-NEXT: [[ARRAYIDX3:%.*]] = getelementptr inbounds <4 x float>, ptr addrspace(1) [[OUT:%.*]], i64 [[CALL]]
105-
; CHECK-NEXT: store <vscale x 16 x float> shufflevector (<vscale x 16 x float> insertelement (<vscale x 16 x float> {{(undef|poison)}}, float 0x7FF0000020000000, {{(i32|i64)}} 0), <vscale x 16 x float> {{(undef|poison)}}, <vscale x 16 x i32> zeroinitializer), ptr addrspace(1) [[ARRAYIDX3]], align 16
104+
; CHECK-NEXT: store <vscale x 16 x float> shufflevector (<vscale x 16 x float> insertelement (<vscale x 16 x float> {{(undef|poison)}}, float 0x7FF8000020000000, {{(i32|i64)}} 0), <vscale x 16 x float> {{(undef|poison)}}, <vscale x 16 x i32> zeroinitializer), ptr addrspace(1) [[ARRAYIDX3]], align 16
106105
; CHECK-NEXT: ret void
107106

108107
; CHECK-LABEL: @__vecz_nxv4_vector_broadcast(

llvm/lib/SYCLNativeCPUUtils/compiler_passes/vecz/test/lit/llvm/contiguous_allocas.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
2121
target triple = "spir64-unknown-unknown"
2222

23-
@entry_test_alloca.lm = internal unnamed_addr addrspace(3) constant [16 x <2 x float>] undef, align 8
23+
@entry_test_alloca.lm = external unnamed_addr addrspace(3) constant [16 x <2 x float>], align 8
2424

2525
define spir_kernel void @test(<2 x float> addrspace(1)* nocapture readonly %in, <2 x float> addrspace(1)* nocapture %out, i32 %offset) local_unnamed_addr {
2626
entry:

llvm/lib/SYCLNativeCPUUtils/compiler_passes/vecz/test/lit/llvm/overaligned_allocas.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
2121
target triple = "spir64-unknown-unknown"
2222

23-
@entry_test_alloca.lm = internal unnamed_addr addrspace(3) constant [16 x <2 x float>] undef, align 8
23+
@entry_test_alloca.lm = external unnamed_addr addrspace(3) constant [16 x <2 x float>], align 8
2424

2525
define spir_kernel void @test(<2 x float> addrspace(1)* nocapture readonly %in, <2 x float> addrspace(1)* nocapture %out, i32 %offset) local_unnamed_addr {
2626
entry:

0 commit comments

Comments
 (0)