File: badasm.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 (28 lines) | stat: -rw-r--r-- 846 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
;=========================== begin_copyright_notice ============================
;
; Copyright (C) 2022 Intel Corporation
;
; SPDX-License-Identifier: MIT
;
;============================ end_copyright_notice =============================

; RUN: %not_for_vc_diag% llc %s -march=genx64 -mcpu=Gen9 -o /dev/null 2>&1 | FileCheck %s

define dllexport spir_kernel void @test(i64 %privBase) #0 {
; CHECK: error: LLVM ERROR: GenXCisaBuilder: Failed to parse inline visa assembly
; CHECK-NEXT: near line {{[^:]+}}: syntax error, unexpected IDENT
  tail call void asm sideeffect "badasm", ""()
  ret void
}

attributes #0 = { "CMGenxMain" }

!genx.kernels = !{!0}
!genx.kernel.internal = !{!4}

!0 = !{void (i64)* @test, !"test", !1, i32 0, !2, !3, !3, i32 0}
!1 = !{i32 96}
!2 = !{i32 64}
!3 = !{}
!4 = !{void (i64)* @test, !5, !5, !3, !5}
!5 = !{i32 0}