File: warning.ll

package info (click to toggle)
intel-graphics-compiler 1.0.17791.18-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 102,312 kB
  • sloc: cpp: 935,343; lisp: 286,143; ansic: 16,196; python: 3,279; yacc: 2,487; lex: 1,642; pascal: 300; sh: 174; makefile: 27
file content (37 lines) | stat: -rw-r--r-- 1,381 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
;=========================== begin_copyright_notice ============================
;
; Copyright (C) 2021-2023 Intel Corporation
;
; SPDX-License-Identifier: MIT
;
;============================ end_copyright_notice =============================

; RUN: llc %s -march=genx64 -mcpu=Gen9 -o /dev/null 2>&1 | FileCheck %s
; CHECK: warning: GenXCisaBuilder failed for: < %call = call i32 asm "mov (M1, 1) $0 $1", "=a,i"(i32 %arg) #{{[0-9]+}}, !srcloc !{{[0-9]+}}, !genx.inlasm.constraints.info !{{[0-9]+}}>: "mov (M1, 1) $0 $1" immediate constraint in inline assembly was satisfied to value

; Function Attrs: noinline nounwind
define dllexport spir_kernel void @test(i32 %0, i32 %1, i64 %privBase) #2 {
  %3 = call i32 asm "mov (M1, 1) $0 $1", "=a,i"(i32 %0) #1, !srcloc !42
  ret void
}

attributes #2 = { noinline nounwind "CMGenxMain" "oclrt"="1" }

!genx.kernels = !{!4}
!genx.kernel.internal = !{!8}
!llvm.module.flags = !{!21, !22}

!0 = !{i32 0, i32 0}
!2 = !{}
!4 = !{void (i32, i32, i64)* @test, !"test", !5, i32 0, !6, !0, !7, i32 0}
!5 = !{i32 2, i32 2, i32 96}
!6 = !{i32 72, i32 80, i32 64}
!7 = !{!"buffer_t read_write", !"buffer_t read_write"}
!8 = !{void (i32, i32, i64)* @test, !9, !10, !2, !10}
!9 = !{i32 0, i32 0, i32 0}
!10 = !{i32 0, i32 1, i32 2}
!21 = !{i32 2, !"Dwarf Version", i32 4}
!22 = !{i32 2, !"Debug Info Version", i32 3}
!24 = !{null}
!42 = !{ i32 3 }