|
15 | 15 | ; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
16 | 16 |
|
17 | 17 | ; NOTE: Assertions have been autogenerated by scripts/testing/update_veczc_checks.py |
18 | | -; REQUIRES: llvm-13+ |
19 | 18 | ; RUN: veczc -vecz-scalable -vecz-simd-width=4 -S < %s | FileCheck %s |
20 | 19 |
|
21 | 20 | target triple = "spir64-unknown-unknown" |
|
29 | 28 | %arrayidx = getelementptr inbounds <4 x float>, <4 x float> addrspace(1)* %in, i64 %call |
30 | 29 | %0 = bitcast <4 x float> addrspace(1)* %arrayidx to <4 x float> addrspace(1)* |
31 | 30 | %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> |
33 | 32 | %arrayidx3 = getelementptr inbounds <4 x float>, <4 x float> addrspace(1)* %out, i64 %call |
34 | 33 | store <4 x float> %2, <4 x float> addrspace(1)* %arrayidx3, align 16 |
35 | 34 | ret void |
@@ -102,7 +101,7 @@ entry: |
102 | 101 | ; CHECK-NEXT: entry: |
103 | 102 | ; CHECK-NEXT: [[CALL:%.*]] = tail call spir_func i64 @_Z13get_global_idj(i32 0) |
104 | 103 | ; 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 |
106 | 105 | ; CHECK-NEXT: ret void |
107 | 106 |
|
108 | 107 | ; CHECK-LABEL: @__vecz_nxv4_vector_broadcast( |
|
0 commit comments