File: basic-typed-pointers.ll

package info (click to toggle)
intel-graphics-compiler2 2.16.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 106,644 kB
  • sloc: cpp: 805,640; lisp: 287,672; ansic: 16,414; python: 3,952; yacc: 2,588; lex: 1,666; pascal: 313; sh: 186; makefile: 35
file content (50 lines) | stat: -rw-r--r-- 2,016 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
;=========================== begin_copyright_notice ============================
;
; Copyright (C) 2022-2024 Intel Corporation
;
; SPDX-License-Identifier: MIT
;
;============================ end_copyright_notice =============================
;
; RUN: igc_opt --typed-pointers -debugify -igc-dynamic-texture-folding -check-debugify -S < %s 2>&1 | FileCheck %s
; ------------------------------------------------
; DynamicTextureFolding
; ------------------------------------------------

; Debug info related checks
; CHECK-NOT: WARNING: Missing line {1|3|5|7}
; CHECK: CheckModuleDebugify: PASS


define void @test(float %src1, float %src2, float %src3, float* %dst) {
; CHECK-LABEL: @test(
; CHECK:    store float 0.000000e+00, float* [[DST:%.*]], align 4
; CHECK:    store float 0.000000e+00, float* [[DST]], align 4
; CHECK:    store float 0.000000e+00, float* [[DST]], align 4
; CHECK:    store float 0.000000e+00, float* [[DST]], align 4
; CHECK:    ret void
;
  %1 = call <4 x float> @llvm.genx.GenISA.ldptr.4f32(i32 1, i32 2, i32 3, i32 4, i8 addrspace(196609)* null, i8 addrspace(524293)* inttoptr (i64 5 to i8 addrspace(524293)*), i32 5, i32 6, i32 7)
  %2 = extractelement <4 x float> %1, i32 0
  store float %2, float* %dst, align 4
  %3 = extractelement <4 x float> %1, i32 1
  store float %3, float* %dst, align 4
  %4 = extractelement <4 x float> %1, i32 2
  store float %4, float* %dst, align 4
  %5 = extractelement <4 x float> %1, i32 3
  store float %5, float* %dst, align 4
  ret void
}

declare <4 x float> @llvm.genx.GenISA.ldptr.4f32(i32, i32, i32, i32, i8 addrspace(196609)*, i8 addrspace(524293)*, i32, i32, i32)

!IGCMetadata = !{!0}

!0 = !{!"ModuleMD", !1}
!1 = !{!"inlineDynTextures", !2, !3}
!2 = !{!"inlineDynTexturesMap[0]", i32 5}
!3 = !{!"inlineDynTexturesValue[0]", !4, !5, !6, !7}
!4 = !{!"inlineDynTexturesValue[0]Vec[0]", i32 0}
!5 = !{!"inlineDynTexturesValue[0]Vec[1]", i32 0}
!6 = !{!"inlineDynTexturesValue[0]Vec[2]", i32 0}
!7 = !{!"inlineDynTexturesValue[0]Vec[3]", i32 0}