Skip to content

Commit 4a2ee08

Browse files
bokrzesiigcbot
authored andcommitted
ConstantCoalescing: Fix 2 failing LIT tests
* Fix 2 failing LIT tests: ldraws.ll and ldraws-typed-pointers.ll
1 parent 8d78e07 commit 4a2ee08

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

IGC/Compiler/tests/ConstantCoalescing/ldraws-typed-pointers.ll

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
;
77
;============================ end_copyright_notice =============================
88

9-
; RUN: igc_opt --typed-pointers %s -S -o - -igc-constant-coalescing -instcombine -dce | FileCheck %s --check-prefixes=CHECK,%LLVM_DEPENDENT_CHECK_PREFIX%
9+
; RUN: igc_opt --typed-pointers %s -S -o - -igc-constant-coalescing -instcombine -dce | FileCheck %s
1010

1111
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f16:16:16-f32:32:32-f64:64:64-f80:128:128-v16:16:16-v24:32:32-v32:32:32-v48:64:64-v64:64:64-v96:128:128-v128:128:128-v192:256:256-v256:256:256-v512:512:512-v1024:1024:1024-a:64:64-f80:128:128-n8:16:32:64"
1212

@@ -91,14 +91,12 @@ exitBB:
9191

9292
; CHECK-LABEL: define <4 x float> @f2
9393
; CHECK: %1 = call <1 x float> @llvm.genx.GenISA.ldrawvector.indexed.v1f32.p2490373i8(i8 addrspace(2490373)* %0, i32 %src, i32 4, i1 false)
94-
; CHECK-LLVM-14: %2 = extractelement <1 x float> %1, {{i[0-9]+}} 0
95-
; CHECK-LLVM-15: %2 = extractelement <1 x float> %1, {{i[0-9]+}} 0
94+
; CHECK: %2 = extractelement <1 x float> %1, {{i[0-9]+}} 0
9695
; CHECK: br label %storeBB
9796
; CHECK-LABEL: storeBB:
9897
; CHECK: call void @llvm.genx.GenISA.storeraw.indexed.p2490368i8.f32(i8 addrspace(2490373)* %0, i32 %src, float 0.000000e+00, i32 4, i1 false)
9998
; CHECK: br label %exitBB
10099
; CHECK-LABEL: exitBB:
101-
; CHECK-LLVM-16: %2 = extractelement <1 x float> %1, {{i[0-9]+}} 0
102100
; CHECK: %3 = add i32 %src, 4
103101
; CHECK: %4 = call <16 x float> @llvm.genx.GenISA.ldrawvector.indexed.v16f32.p2490373i8(i8 addrspace(2490373)* %0, i32 %3, i32 4, i1 false)
104102
; CHECK: %5 = extractelement <16 x float> %4, {{i[0-9]+}} 11

IGC/Compiler/tests/ConstantCoalescing/ldraws.ll

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
;============================ end_copyright_notice =============================
88

99
; REQUIRES: llvm-14-plus
10-
; RUN: igc_opt --opaque-pointers %s -S -o - -igc-constant-coalescing -instcombine -dce | FileCheck %s --check-prefixes=CHECK,%LLVM_DEPENDENT_CHECK_PREFIX%
10+
; RUN: igc_opt --opaque-pointers %s -S -o - -igc-constant-coalescing -instcombine -dce | FileCheck %s
1111

1212
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f16:16:16-f32:32:32-f64:64:64-f80:128:128-v16:16:16-v24:32:32-v32:32:32-v48:64:64-v64:64:64-v96:128:128-v128:128:128-v192:256:256-v256:256:256-v512:512:512-v1024:1024:1024-a:64:64-f80:128:128-n8:16:32:64"
1313

@@ -92,14 +92,12 @@ exitBB:
9292

9393
; CHECK-LABEL: define <4 x float> @f2
9494
; CHECK: %1 = call <1 x float> @llvm.genx.GenISA.ldrawvector.indexed.v1f32.p2490373(ptr addrspace(2490373) %0, i32 %src, i32 4, i1 false)
95-
; CHECK-LLVM-14: %2 = extractelement <1 x float> %1, {{i[0-9]+}} 0
96-
; CHECK-LLVM-15: %2 = extractelement <1 x float> %1, {{i[0-9]+}} 0
95+
; CHECK: %2 = extractelement <1 x float> %1, {{i[0-9]+}} 0
9796
; CHECK: br label %storeBB
9897
; CHECK-LABEL: storeBB:
9998
; CHECK: call void @llvm.genx.GenISA.storeraw.indexed.p2490368.f32(ptr addrspace(2490373) %0, i32 %src, float 0.000000e+00, i32 4, i1 false)
10099
; CHECK: br label %exitBB
101100
; CHECK-LABEL: exitBB:
102-
; CHECK-LLVM-16: %2 = extractelement <1 x float> %1, {{i[0-9]+}} 0
103101
; CHECK: %3 = add i32 %src, 4
104102
; CHECK: %4 = call <16 x float> @llvm.genx.GenISA.ldrawvector.indexed.v16f32.p2490373(ptr addrspace(2490373) %0, i32 %3, i32 4, i1 false)
105103
; CHECK: %5 = extractelement <16 x float> %4, {{i[0-9]+}} 11

0 commit comments

Comments
 (0)